fshaw
03-02-2009, 02:56 AM
Not just any value but the value in my forms hidden input value what i am doing wrong here is the javascript function and my form is below
Here is the problem now
<script type="text/javascript"> function process_selected(form) {
alert('This is working!');
var myme = form["me"].value;
form.submit();
}
</script>
<form name="myfrom" action="calendar.php" method="get" onsubmit="process_selected(this)" >
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="month" value="$month" />
<input type="hidden" name="year" value="$year" />
<input type="hidden" name="do" value="$docalendar" />
<strong>$vbphrase[Lodge_Calendar]</strong><br />
<select name="c" >
<optgroup label="$vbphrase[please_select_one]">
$jumpcalendarbitsl
</optgroup>
<input type="hidden" name="me" value='2'" />
</select>
<input type="submit" class="button" value="$vbphrase[go]" > <br />
</div>
</form>
Please review what is posted above and tell me what i am doing wrong?
<input type="hidden" name="me" value='2'" />
The above is the hidden value I am trying to pass to through to my javascript function.
THANKS
Frank H. Shaw
Here is the problem now
<script type="text/javascript"> function process_selected(form) {
alert('This is working!');
var myme = form["me"].value;
form.submit();
}
</script>
<form name="myfrom" action="calendar.php" method="get" onsubmit="process_selected(this)" >
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="month" value="$month" />
<input type="hidden" name="year" value="$year" />
<input type="hidden" name="do" value="$docalendar" />
<strong>$vbphrase[Lodge_Calendar]</strong><br />
<select name="c" >
<optgroup label="$vbphrase[please_select_one]">
$jumpcalendarbitsl
</optgroup>
<input type="hidden" name="me" value='2'" />
</select>
<input type="submit" class="button" value="$vbphrase[go]" > <br />
</div>
</form>
Please review what is posted above and tell me what i am doing wrong?
<input type="hidden" name="me" value='2'" />
The above is the hidden value I am trying to pass to through to my javascript function.
THANKS
Frank H. Shaw