HI;
I would really appreciate help as after two hours of trying to solve problem, i’m still stumped. Validation of several input fields work fine on IE, but foxfire ignores it. I’ve simplified but even one field doesn’t get validated.
Note: Javascript is turned on + it validates other pages as expected.
thanks so much!
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″ />
<title>payment2</title>
<script type=”text/javascript” language=”Javascript”>
function check_data(payment)
{var perror=false;
cctypeindex=payment2.cctype.selectedIndex;
if (cctypeindex == 0)
{alert (“Credit Card Type Not Selected….Please Select Card Type.”);
perror=true;
}
if (perror) {return false;}
else {return true;}
}
</script>
</head>
<body>
<form name=”payment2″ action=”Payment3.php” method=”post”
onsubmit=”return check_data(this)” >
<table width=56% height=”152″ border=”1″ cellpadding=”00″ cellspacing=”0″ bordercolor=”#009999″ >
<td height=”29″ colspan=”3″ valign=”middle” bgcolor=”#009999″>CREDIT CARD INFORMATION</td>
</tr>
<tr>
<td width=”48%” height=”27″ valign=”middle” bgcolor=”#00CCCC”>Credit Card Type:</td>
<td width=”52%” height=”27″ valign=”middle” bgcolor=”#00CCCC”>
<select name=”cctype” size=”1″ id=”cctype”>
<option>Please Select</option>
<option value=”VISA”>Visa</option>
<option value=”MC”>Master Card</option> </select> </td></tr>
<tr>
<td align=“left height=“23”>
<input type=”submit” name=”submit” value=”CONTINUE” />
</td>
</tr>
</form>
</table>
</body>
</html>