hi guys,
can anybody tell me how to break words entered into one text box to variables?
For example, in one text box, you enter the following words:
[INDENT]First
Second
Third[/INDENT]
Once submitted, how do we break each of the words above into one variable each so it would look like:
// www.blah.com?textbox=first%second%third
$textbox = $_GET['textbox'];
// Break each word into a variable
$t1 = 'first';
$t2 ='second';
$t3 ='third';
Each word will be separated by a space (or a comma if you guys think this is better).
The form will either use GET or POST but for this instance i'm going to use GET.
I think i'm supposed to use explode() and foreach() but I don't know how. :glare:
Please help a newbie. Thanks in advance!