Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Turning a $_POST into a array
oic, is this it? http://www.w3schools.com/php/func_array_sort.asp
if not heres a bunch of array functions maybe its one of these http://www.w3schools.com/php/php_ref_array.asp
The PHP post var is already an array, so unless you're filtering data, and then putting it into another array, there is really no point… Just use $_POST. But, here is my solution :)
$userInput = array();
foreach ($_POST as $key => $value)
{
$userInput[$key] = $value;
}
If that's not what you're after, could you please explain in more detail what you are trying to achieve?
Good luck, -Jay.
i have a text area, and i have multiple things in it seperated by lines, how do i put each line in its own spot, in the array Assuming you had a text area with the name "text" and the contents looked like:
username2
username3
username4```
If you wanted to put each of those usernames into an array like a[0]="username1", a[1]="username2" etc then I think darkcoder had what you wanted with:
> $a=explode("\n",$_POST["text"]);
but his post got deleted.