I have an email program that automatically sends whatever fields are on a form, and I need to dynamically change the value of one of the hidden fields in a form based on the selection of a radio button. This needs to be set before the form is submitted. Can it be done with the onClick somehow in php?
<form action="email.pl" method="post">
e-mail address:<br>
<input type="text" name="email" size="32" maxlength="64">
<DD><input type="radio" name="action" value="Subscribe" id="Subscribe" checked>
<label for="Subscribe">Subscribe</label>
<DD><input type="radio" name="action" value="Remove" id="Remove">
<label for="Remove">Unsubscribe</label>
<input type="hidden" name="Msg" value="dynamic value">
<BR><input type="submit" value="Submit">
</form>