LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 656 users online 211543 members 1337 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Chasey
Peeves: Gay people
Mood: Hopeless
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
5 online / 34 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Simple PHP question
Replies: 3Last Post June 7, 2008 1:24pm by Tony327
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( Mediocre )


Dairy Product Addict
Reply
one.htm has a form

Code:

<form action="two.php" method="post"
enctype="multipart/form-data">
<label for="file"></label>

File:<input type="file" name="file" id="file" />  

User: <input type="text" name="user" id="user" />  

<br />

<input type="submit" name="submit" value="Submit" />
</form>


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?

Post edited at 12:26 pm on June 7, 2008 by Mediocre

-------
Incest and bestiality are neat.


12:25 pm on June 7, 2008 | Joined: Nov. 2007 | Days Active: 209
Join to learn more about Mediocre Czech Republic | Male | Posts: 1,642 | Points: 3,195
Tony327


Dairy Product Addict
Reply
Maybe this could be what you need?

<?php echo $_POST["user"]; ?>

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.


12:43 pm on June 7, 2008 | Joined: May 2008 | Days Active: 316
Join to learn more about Tony327 Georgia, United States | Straight Male | Posts: 99 | Points: 3,293
( Mediocre )


Dairy Product Addict
Reply
That worked, thanks.

-------
Incest and bestiality are neat.

1:08 pm on June 7, 2008 | Joined: Nov. 2007 | Days Active: 209
Join to learn more about Mediocre Czech Republic | Male | Posts: 1,642 | Points: 3,195
Tony327


Dairy Product Addict
Reply
You're welcome. I'm glad I could help!

1:24 pm on June 7, 2008 | Joined: May 2008 | Days Active: 316
Join to learn more about Tony327 Georgia, United States | Straight Male | Posts: 99 | Points: 3,293
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic