I have two forms each in a different table. I can parse the first one fine but can not get the second to upload any files.
</p>
<table width="90%" border="0" align="center">
<form action="*.php" method="post" enctype="multipart/form-data" name="a_form" id="a_form">
<tr>
<td width="26%">New A form</td>
<td width="58%"><input type="file" name="fileField" id="fileField" /></td>
<input name="parse_var" type="hidden" value="a" />
<td width="16%"><input type="submit" name="Submit" id="Submit" value="Submit" /></td>
</tr>
</form>
</table>
<p><br/></p>
<table width="90%" border="0" align="center">
<form action="*.php" method="post" enctype="multipart/form-data" name="b_form" id="b_form">
<tr>
<td width="26%">New B form</td>
<td width="58%"><input type="file" name="fileField1" id="fileField1" /></td>
<input name="parse_var" type="hidden" value="b" />
<td width="16%"><input type="submit" name="Submit" id="Submit" value="Submit" /></td>
</tr>
</form>
</table>
I'm using:
if ($_POST['parse_var'] == "a"){
if ($_POST['parse_var'] == "b"){
if i change "b" to "a" in my script it works fine for " b", but then the new "a" doesn't work. The forms are not nested in each other so that shouldn't be the problem. I am not having issues with permissions, there are no error messages anywhere, and i know both scripts work just not together. Anybody have any ideas? Thanks guys!