Hi,
Could someone help me out with the code for my mailing list form please? The form consists of an email input field and two checkboxes, one which allows you to subscribe to the list and another one which allows you to unsubscribe. At the moment both checkboxes can be ticked, which obviously doesn't make sense because you can't subscribe and unsubscribe at the same time. Here's my HTML code...
Any help would be much appreciated, thanks.
Could someone help me out with the code for my mailing list form please? The form consists of an email input field and two checkboxes, one which allows you to subscribe to the list and another one which allows you to unsubscribe. At the moment both checkboxes can be ticked, which obviously doesn't make sense because you can't subscribe and unsubscribe at the same time. Here's my HTML code...
PHP Code:
<form name="txtlist" action="grapevine/index.php" method="get">
<br>
<table border="0" align="center" cellpadding="4" cellspacing="0" class="asb">
<tr><td width="427">
<input type="text" name="email" value="email address" size="20" maxlength="100" onFocus="if (this.value=='email address') this.value=''" onBlur="if (this.value=='') this.value='email address'" class="forms">
<input type="submit" name="sub" value="go" class="forms">
<input type="checkbox" name="type" id="type_sub" value="sub" checked>
<label for="type_sub"> Subscribe</label>
<input type="checkbox" name="type" value="unsub" id="type_unsub">
<label for="type_unsub"> Unsubscribe</label>
</td></tr>
</table>
</form>
Comment