Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-21-2003, 11:53 PM #1
- Join Date
- Feb 2003
- London, UK
- Thanked 0 Times in 0 Posts
Setting a variable using a text box
Hi, this could possibly be an obvious question, but I've just started learning PHP, so, yeah give me a chance :P.
What i would like to do is for the user to define what a variable should equal by typing it into a textbox.
If the user typed mobile phone into the textbox...
or if the user type internet into the textbox...
You get the idea
Thanks in advance
11-21-2003, 11:57 PM #2
Once the form has been submitted by the POST method, you can use:
$variable = $_POST['textareanamehere'];