i have a php variable that was created through an input text box
ex:
<b>Name: </b><input type="text" name="name"><br>
i'm making a multi-page thing. i want the $name variable to be global, but its not working. on the next page, i create a txt file based on the $name variable and then store data into that txt file. like this:
$file=fopen("$name.txt",'a');
fwrite($file,$picks);
fclose($file);
it works only for that page. when i go on to the next page(s), it stores everything into ".txt" instead of "$name.txt". so i assume that this is b/c $name is not global. how do i fix this?