How do i store the value of a <textarea> in a variable using PHP?
Printable View
How do i store the value of a <textarea> in a variable using PHP?
anyone? please? this should be easy!
Just give the text area a name like so
<form method="post" action="somepage.php">
<textarea name="something"></textarea>
<input type="submit" value="submit">
</form>
the veriable for the text area would be $something
you can store it in a database or a flat text file if you want though ;)
well i need to get the value of it before i can even do that!
the name of the text area that was submitted is stored in $textareaname
just like dork 1's example
Did you use $varname?