Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-22-2003, 12:53 AM #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-22-2003, 12:57 AM #2
Once the form has been submitted by the POST method, you can use:
$variable = $_POST['textareanamehere'];