I have been working on this for a while and cannot seem to figure it out at all. Any help would be appreciated. here we go.
I have an html form that has a text box and a submit button. the text entered in the text box is posted to my .php processor form. Once it gets here, I use:
$textdata = $_POST['textdata'];
$input = explode("\n", $textdata);
this takes the data, splits it by line, and stores each line in an array called $input.
from here i can echo $input[0] to get the first line and so on. But I need to use this further down in my script and need to assign a variable to the first line, or $input[0].
$input[0] = $line1; does not work. I think I might have to use extract() and a foreach loop? Any help would be greatly appreciated. thanks!
var_dump()'ing the$inputarray before and after modifying the first element to make sure?