Hi,
is there a possibility to have a submit button that (both) writes data to a mySQL database AND redirects to another page.
If I use JavaScript (Dreamweaver code) on the submit button, the PHP stuff on the page is not being executed.
Thank you for your help.
[SOLVED] need help with submit button
Moderator: General Moderators
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
How about at the end of your php code you go:
Header("Location: http://yourwebsite.com/yourpage.html");
to redirect to yourpage.html.
Header("Location: http://yourwebsite.com/yourpage.html");
to redirect to yourpage.html.