Forum Moderators: open

Message Too Old, No Replies

Script Help

         

bbm_builder

2:22 am on Feb 24, 2006 (gmt 0)

10+ Year Member



I obviously need an additional set of eyes for my script because it's not working and I can't see why not. Can someone take a look at the script and let me know if you see why the inputs are not getting through to my CGI Server? What, if any, values am I sending to the CGI script? Thanks.

<script type="text/javascript"><!--

function checkIt() {
with(document) {
if((ultgoal.goal.value=="")¦¦(ultgoal.date.value=="")) {
alert("You have missing or incorrect information");
}
else {
verified.wgoal.value = ultgoal.wgoal.value;
verified.date.value = ultgoal.date.value;
verified.submit();
}
}
}

//--></script>

<form name="ultgoal">
<textarea name="wgoal" rows=3cols=55></textarea> <b>Completion Date for Goal:</b><input type="text" name="date" value="" size="8"
<input type="button" name="button" value="Submit" onclick="checkIt()">
</form>

<form action="http://mydomain.com/cgi-bin/goal.cgi" method="post" name="verified">
<input type="hidden" name="wgoal" value="">
<input type="hidden" name="date" value="">
</form>

prasanth jvrs

8:50 am on Feb 24, 2006 (gmt 0)

10+ Year Member



Hi,

Hope this helps.

<script type="text/javascript"><!--

function checkIt() {
with(document) {
if(( ultgoal.wgoal.value=="") ¦¦ (ultgoal.date.value=="")) {
alert("You have missing or incorrect information");
}
else {
verified.wgoal.value = ultgoal.wgoal.value;
verified.date.value = ultgoal.date.value;
alert(verified.date.value);
verified.submit();
}
}
}

//--></script>

<form name="ultgoal">
<textarea name="wgoal" rows=3cols=55></textarea> <b>Completion Date for Goal:</b>
<input type="text" name="date" value="" size="8">
<input type="button" name="button" value="Submit" onclick="checkIt()">
</form>

<form action="http://mydomain.com/cgi-bin/goal.cgi" method="post" name="verified">
<input type="hidden" name="wgoal" value="">
<input type="hidden" name="date" value="">
</form>

Thanks
Prasanth J.V.R.S