Jump to content

Question


mike0193

Recommended Posts

I want to create a site where information can be entered into a text field and then submitted to to a different page with the information that was submitted. Im new to php. Any scripts that will do this, or any ideas on how to learn how to do this, or whats this called?

Link to comment
Share on other sites

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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.