This is driving me nutts!
It seems so simple yet I just can't seem to do it.
Basically, I want to have a form on page 1, lets say form.html, that allows user to put in a comma separated list of numbers. 1,2,3,4 for e.g.-- the input for this is <input type = text name = TheList>
The next page, lets say process.php, i want it so it will take that list of numbers, and make an array out of them, i.e. [1,2,3,4]
I tried doing
$List = array($_POST[TheList]);
but it just doesnt' work. I thought that it would just make the array and voila!
Any help would be appreciated!
Thanks
It seems so simple yet I just can't seem to do it.
Basically, I want to have a form on page 1, lets say form.html, that allows user to put in a comma separated list of numbers. 1,2,3,4 for e.g.-- the input for this is <input type = text name = TheList>
The next page, lets say process.php, i want it so it will take that list of numbers, and make an array out of them, i.e. [1,2,3,4]
I tried doing
$List = array($_POST[TheList]);
but it just doesnt' work. I thought that it would just make the array and voila!
Any help would be appreciated!
Thanks