Jump to content

php form help


vicious

Recommended Posts

hey guys just making a website and its been a while since i've done php.

basically i have a textarea on page1.php that sends its info(lets call it $text) to page2.php

page2.php gets $text and also has 2 more textfields ($field1 and $field2) and sends its info to page3.php

i would like to get page3.php to process the info from page1.php and page2.php. is there anyway to do this cleanly?

is there a way i can put $text into a superglobal or something? maybe the $POST array that page2.php will send to page3.php if thats possible?

the only way i can think of doing it is to have an invisible(using css) textarea in page2.php that contains $text but this doesn't seem like a good solution

any ideas would be appreciated, and no i cannot put page1 and page2 forms on the one page and i know my variable names and page names are stupid but i'm only using them as an example

Link to comment
Share on other sites

thanks alot!

just one more quick question, in one of my forms i'm asking for an image to be uploaded and an email address. is it possible to use the same one form with this tag:

<form enctype="multipart/form-data" action="uploadFile.php" method="post">

and if i have to use 2 forms (on the same page) can i use:

action="uploadFile.php"

for both of the forms? assuming uploadfile.php does more to the inputted data than uploading the file

Link to comment
Share on other sites

thanks alot!

just one more quick question, in one of my forms i'm asking for an image to be uploaded and an email address. is it possible to use the same one form with this tag:

<form enctype="multipart/form-data" action="uploadFile.php" method="post">

and if i have to use 2 forms (on the same page) can i use:

action="uploadFile.php"

for both of the forms? assuming uploadfile.php does more to the inputted data than uploading the file

yes, thats fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...