java - How to redirect if form is not submitted -
I have a form for registration (example: www.register.com ), a The bar fills the form of the form and the clicks to be submitted are sent to the second page (for example: www.thanku.com ).
It's all working well but how do I www.register.com when a user goes directly to www.thanku.com < / P>
First check on thanku.com that the user has submitted any post request < / P>
like
if (! Isset ($ _ POST ['submit']) {header ('location: http://www.register.com/'); Exit;}
Comments
Post a Comment