asdfg Posted June 5, 2012 Share Posted June 5, 2012 Hello, I'm still fairly new to php and have only made a contact form. I would like that if you click on the submit button you go to another page. Does anyone know if and how this can. Thanks Sorry for my bad English Quote Link to comment https://forums.phpfreaks.com/topic/263714-php-contact-form/ Share on other sites More sharing options...
Barand Posted June 5, 2012 Share Posted June 5, 2012 Put the target page in the form's action attribute <form action='anotherPage.php' method='post> ... form elements ... </form> Quote Link to comment https://forums.phpfreaks.com/topic/263714-php-contact-form/#findComment-1351444 Share on other sites More sharing options...
asdfg Posted June 5, 2012 Author Share Posted June 5, 2012 Put the target page in the form's action attribute <form action='anotherPage.php' method='post> ... form elements ... </form> I have now the php and the html in 1 page, and when i do that he only goes to another page but he send nothing. http://no-nonsens.eu/offerte-kopie.php Quote Link to comment https://forums.phpfreaks.com/topic/263714-php-contact-form/#findComment-1351453 Share on other sites More sharing options...
vikrantmohite Posted June 6, 2012 Share Posted June 6, 2012 form.php <form action='anotherPage.php' method='post> ... form elements ... </form> anotherPage.php <?php $_post['txtBox'] // collect info to send and do database insertion here ?> <html> ......... Some HTML Code.......... </html> Quote Link to comment https://forums.phpfreaks.com/topic/263714-php-contact-form/#findComment-1351573 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.