I have a form (on page form.php) and when the submit button is clicked it sends the data to mysql using:
<form name="food."; action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" >
I now want to submit it to mysql then go to 'thankyou.php' page. So I need a server side PHP code to process the form to mysql.
<form name="food."; action="thankyou.php" method="post" >
thankyou.php will submit the form then display 'thank you, your form has been submitted'.
What would the code need to be on the thankyou.php page to submit the form data on the form.php page.