adamb70
07-14-2003, 12:14 PM
I have a small problem which I'd appreciate some help with.
I have a Flash mx form that I need to put a checkbox on but cannot seem to populate the database with the correct info.
The cgi is creating the field in the database but it seems as though the checkbox isnt passing any values.
I'm sure I'm missing something in Flash, some code or something to pass the value to the cgi script?
I have text boxes in the form which are working fine I have simply named the variables and that works fine.
I hope someone has the answer!
In case you need it the cgi reads as follows:
<script language="javascript">
function EmailAlert(GetValue) {
if(GetValue=="") {
alert("Please enter your email address");
} else {
alert("Please enter a valid email address");
}
}
function SubmitThisForm(GetEmail,GetFriend1,GetFriend2,GetF riend3,GetOptIn) {
document.JoinForm.Email.value = GetEmail;
document.JoinForm.FriendEmail1.value = GetFriend1;
document.JoinForm.FriendEmail2.value = GetFriend2;
document.JoinForm.FriendEmail3.value = GetFriend3;
document.JoinForm.OptIn.value = GetOptIn;
document.JoinForm.submit();
}
</script>
<form action="http://www.jointhelist.com/cgi-bin/vjoinform.cgi" method="POST" name="JoinForm" onSubmit="return ValidateForm();" target="_parent">
<INPUT type="hidden" name="ReleaseID" value="heartjustina_v">
<INPUT type="hidden" name="PageName" value="http://www.jointhelist.com/heartfm/justina/justinarep.html">
<INPUT type="hidden" name="Email" value="">
<INPUT type="hidden" name="FriendEmail1" value="">
<INPUT type="hidden" name="FriendEmail2" value="">
<INPUT type="hidden" name="FriendEmail3" value="">
<INPUT type="hidden" name="OptIn" value="">
</form>
I have a Flash mx form that I need to put a checkbox on but cannot seem to populate the database with the correct info.
The cgi is creating the field in the database but it seems as though the checkbox isnt passing any values.
I'm sure I'm missing something in Flash, some code or something to pass the value to the cgi script?
I have text boxes in the form which are working fine I have simply named the variables and that works fine.
I hope someone has the answer!
In case you need it the cgi reads as follows:
<script language="javascript">
function EmailAlert(GetValue) {
if(GetValue=="") {
alert("Please enter your email address");
} else {
alert("Please enter a valid email address");
}
}
function SubmitThisForm(GetEmail,GetFriend1,GetFriend2,GetF riend3,GetOptIn) {
document.JoinForm.Email.value = GetEmail;
document.JoinForm.FriendEmail1.value = GetFriend1;
document.JoinForm.FriendEmail2.value = GetFriend2;
document.JoinForm.FriendEmail3.value = GetFriend3;
document.JoinForm.OptIn.value = GetOptIn;
document.JoinForm.submit();
}
</script>
<form action="http://www.jointhelist.com/cgi-bin/vjoinform.cgi" method="POST" name="JoinForm" onSubmit="return ValidateForm();" target="_parent">
<INPUT type="hidden" name="ReleaseID" value="heartjustina_v">
<INPUT type="hidden" name="PageName" value="http://www.jointhelist.com/heartfm/justina/justinarep.html">
<INPUT type="hidden" name="Email" value="">
<INPUT type="hidden" name="FriendEmail1" value="">
<INPUT type="hidden" name="FriendEmail2" value="">
<INPUT type="hidden" name="FriendEmail3" value="">
<INPUT type="hidden" name="OptIn" value="">
</form>