Hello everyone,
I have a form whose values are stored in an array.
eg)
print("<form action=\"../league.php?scriptName=CHECKENROL&leagueID=$leagueID\" name=newMembership method=post>\n");
print("<LABEL>First Name: <input name=\"form[]\" value='$v[0]'></LABEL> ");
print("<LABEL>Last Name: <input name=\"form[]\" value=\"$v[1]\"></LABEL>");
print("<LABEL>Address: <input name=\"form[]\" value=\"$v[2]\"></LABEL");
print("<LABEL>City: <input name=\"form[]\" value=\"$v[3]\"></LABEL></TD>");
Anyways for some reason it will not pass my form values at all when the file I am passing it to is in a different directory.
The file I have the form in is in the directory:
sports/members/myfile.php
the file I am sending the info to is in this directory:
sports/league.php
for some reason when I print"form:$form[1]";
it will not print anything but this "form:";
however if I send the data from the form to a file in that same "members" directory and print that same thing:
print"form:$form[1]";
it will print correctly "form:leena"
Any ideas why this doesn't work?? Any help is greatly appreciated.
Thanks for your time.