FUNKAM35 Posted August 9, 2009 Share Posted August 9, 2009 I would like a visitor to insert a couple of items into the databse without moving to a different page, how do I do this. It is to store their favourite items as cookies Link to comment https://forums.phpfreaks.com/topic/169461-insert-into-database-without-moving-to-different-page/ Share on other sites More sharing options...
DEVILofDARKNESS Posted August 11, 2009 Share Posted August 11, 2009 What's so difficult about it? <?php ... If(isset($_POST['submit']){ $query = "..."; $result = mysql_query($query); ... } ... ?> <html> <head> ... </head> <body> ... <form action='post'> ... <input type='submit' name='submit'> </form> ... </body> </html> Link to comment https://forums.phpfreaks.com/topic/169461-insert-into-database-without-moving-to-different-page/#findComment-895518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.