I hate to jump in here, but I am having a very similar problem and thought maybe someone could, PLEASE, help. I have two forms. The first form is for for user login and has an onSubmit link to validate the fields. When the submit button is hit for this form, it uses the onSubmit link but then proceeds to use the action from the second form. This only happens if the second forms submit button has been used. Here is the code for the first form:
<form method="post" name="FrmLogin" onSubmit="return Validate_FrmLogin()" action="<?php echo $CONST_LINK_ROOT?>/prglogin.php">
<tr>
<td align="left"><?php echo LOGIN_USERNAME?>
</td>
</tr>
<tr>
<td align="left"><input type="text" class="input" name="txtHandle" size="20" tabindex="1" value="<?=$HTTP_COOKIE_VARS[txtHandle_c]?>">
</td>
</tr>
<tr>
<td align="left"><?php echo LOGIN_PASSWORD ?>
</td>
</tr>
<tr>
<td align="left" class="tdeven" > <input name="txtPassword" type="password" class="input" tabindex="2" value="<?=$HTTP_COOKIE_VARS[txtPassword_c]?>" size="20">
</td>
</tr>
<tr>
<td align="left" class="tdodd"><?php echo LOGIN_LOG_AUTOMATICALY ?>
<input type=checkbox name="save"<?php if(isset($HTTP_COOKIE_VARS[txtHandle_c])) echo ' checked' ?>>
</td>
</tr>
<tr >
<td colspan="1" align="left"> <input name="submit" type="submit" class="button" value='<?= BUTTON_LOGIN ?>'>
</td>
</tr>
</form>
and, the code for the second form:
<form name="dating service" method="POST" action="prgminisearch.php">
<tr>
<td height="30" valign="top"><strong>Search for a Date...</strong>
</td>
</tr>
<tr>
<td class="smallest" height="20" valign="bottom"><strong>I am a</strong>
</td>
</tr>
<tr>
<td><select name="lstDatingFrom" size="1" class="inputf">
<option value='M' selected><?php echo GENDER_M?></option>
<option value='F'><?php echo GENDER_W?></option>
<option value='C'><?php echo GENDER_C?></option>
</select>
</td>
</tr>
<tr>
<td class="smallest" height="20" valign="bottom"><strong>Seeking a</strong>
</td>
</tr>
<tr>
<td class="smalltext"><select name="lstDatingTo" size="1" class="inputf">
<option value='M'><?php echo GENDER_M?></option>
<option value='F' selected><?php echo GENDER_W?></option>
<option value='C'><?php echo GENDER_C?></option>
</select>
</td>
</tr>
<tr>
<td class="smallest" height="20" valign="bottom"><strong>Located in</strong>
</td>
<td> </td>
</tr>
<tr>
<td><select name="lstDatingCountry" class="inputf">
<option selected value="0">
<?=SEARCH_ALLCOUNTRIES?>
</option>
<?while ($country_row = mysql_fetch_object($country_res)){?>
<option value="<?=$country_row->gcn_countryid?>">
<?=$country_row->gcn_name?>
</option>
<?}?>
</select>
</td>
<td><input type="image" src="images/go.gif" style="border:0px solid #ffffff;" width="20" height="21" alt="dating service search" name="dating service search">
</td>
</tr>
</form>
If anyone knows a way around this predicament, please help.