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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -