1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <?php
mysql_connect("localhost", "secret", "secret");
mysql_select_db("secret");
$title = $_POST['title'];
$tracklist = $_POST['tracklist'];
if ($_POST['collection_item_tracklist'] == 0)
mysql_query("INSERT INTO collection_item_tracklist VALUES('', '" . $title . "', '" . $tracklist . "')");
mysql_close();
?>
<form action="index.php" method="POST">
<p><strong>Tracklist title :</strong><br /><input type="text" size="30" name="title" value="<?php echo $title; ?>" /></p><br/>
<p><strong>Tracklist :</strong><br /><textarea name="tracklist" cols='30' rows='20'><?php echo $tracklist; ?></textarea></p><br/>
<input type="submit" alt="Send tracklist"/>
</form> |
Partager