Jump to content

Question


mike0193

Recommended Posts

If I am reading your question correctly then it seems more of a html question unless you want it to be resubmitted after submittion. So when the data is entered into the html form, if I understand correctly, you just want to redirect the user to a php page. Well place the following in the form tag:

 

<form method='post' action='destination_page.php'>
Your form fields in here
</form>

 

So the 'action=' section will redirect the user on submittion.

Link to comment
https://forums.phpfreaks.com/topic/140761-question/#findComment-736771
Share on other sites

and on the page you redirect it to try this....

 

if(isset($_POST['submitted']))

{

//do something

echo '<p> data received</p>';

{

else

{

echo '<p>Page not submitted</p>';

 

this bit of code tests whether the information has been sent to the new page or else it shows a message Page not submitted.

 

the //do something is a comment but where you see the data received line this is where you do something with the information.

 

Link to comment
https://forums.phpfreaks.com/topic/140761-question/#findComment-736778
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.