LiveWire Peer Support Network

Printable Version of Topic "Simple PHP question"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Simple PHP question (http://www.golivewire.com/forums/peer-isbnpa-support-a.html)


-- Posted by Mediocre at 12:25 pm on June 7, 2008

one.htm has a form

Code:

enctype="multipart/form-data">

File:  

User:  





I copied this from w3schools and added the "User" input. It's part of an upload script.

two.php uploads the file, and will (say) echo the content of the "user" input. The problem is that I don't know how to do that. What is the variable name for the content of the text input?


-- Posted by Tony327 at 12:43 pm on June 7, 2008

Maybe this could be what you need?

Once the form is submitted using the post method (as your form is set to do), PHP can retrieve the form data. Check out http://www.w3schools.com/php/php_post.asp for more information... I hope I'm helpful.


-- Posted by Mediocre at 1:08 pm on June 7, 2008

That worked, thanks.


-- Posted by Tony327 at 1:24 pm on June 7, 2008

You're welcome. I'm glad I could help!


www.golivewire.com