drog1998 Posted June 18, 2008 Share Posted June 18, 2008 I’ve got probably the most newbie PHP question ever it may even be an HTML question, apologies I’m very new to this. Basically I’m unsure where to put a hidden variable. Should it go on my HTML page where my form is or within my formmail.php page? My ultimate aim is to redirect them to a thankyou page rather than the default php thankyou that Jack Formmail php gives you. Many thanks. D Link to comment https://forums.phpfreaks.com/topic/110693-hidden-variables-where-do-they-go/ Share on other sites More sharing options...
MasterACE14 Posted June 18, 2008 Share Posted June 18, 2008 what is your actual question in english? Do you want to send some 'hidden' information from 1 page to another? Link to comment https://forums.phpfreaks.com/topic/110693-hidden-variables-where-do-they-go/#findComment-567966 Share on other sites More sharing options...
drog1998 Posted June 18, 2008 Author Share Posted June 18, 2008 are hidden variables like this one: <input type="hidden" name="redirect" value="http://www.yoursite.com/thanks.html"> php code or html? I'm unsure where to place this bit of code to redirect users to my custom thank you page. Link to comment https://forums.phpfreaks.com/topic/110693-hidden-variables-where-do-they-go/#findComment-567990 Share on other sites More sharing options...
mark110384 Posted June 18, 2008 Share Posted June 18, 2008 You may want redirect via the php script, don't echo anything out and just put header('location:yourwebpage.html'); Link to comment https://forums.phpfreaks.com/topic/110693-hidden-variables-where-do-they-go/#findComment-568017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.