I've got a set of radio buttons named 'zipit'. The value of one is yes, the other is no. I need to pass the value of whichever one the user selects. Can anyone help me with this?
Here's the code of the page in question:
Here's the code of the page in question:
Code:
<html><head>
<script language="JavaScript">
function dosubmit(email)
{
window.opener.doemail(email,document.frmEmail.zipit);
window.opener = self;
window.close();
}
</script>
<link rel="stylesheet" type="text/css" href="/default.css.cfm">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<form name="frmEmail" method="post">
<tr>
<td colspan="2"><br>
Email Files To:
<input type="text" name="email"></td>
</tr>
<tr>
<td colspan="2"><br>
Zip Files? Yes<input type="radio" name="zipit" value="yes"> No<input type="radio" name="zipit" value="no"></td>
</tr>
<tr>
<td colspan="2"><br><input type="button" value="Send Email" onclick="dosubmit(document.frmEmail.email.value)"></td>
</tr>
</form>
</table>
</body></html>