Hello all this is my first post and im a bit of a n00b when it comes to hardcore web programming, however I thought that something like this should be easy.
The problem is that I have a form which is a preview page from another form, it allows the user to check to see if this is what they want to enter, however in previewing it, it automatically adds the data into the database, heres the main bit of code, I hope you can help me out, yours Al
[QUOTE]
<td align=”center”>Do Wish To Insert This Data?</td>
</tr>
<tr>
<td align=”center”>
<!–Create The Form–>
<input type=”submit” value=”No, Let Me Change It” onClick=”history.back()”>
<form name=”form1″ action=”addsuccess.php”>
<input type=”submit” name=”Submit” value=”Yes, Add The CD To The Database” onClick=””>
<?php
mysql_select_db(“db5”);
$sql=”INSERT INTO CD (CDTitle, CDSinger, CDGenre, CDPrice, CDBuy, CDimg, CDDescription) VALUES (‘$_POST[CDTitle]’, ‘$_POST[CDGenre]’, ‘$_POST[CDBuy]’, ‘$
mysql_query($sql); ?>
</form></td>
[code=php]