
Originally Posted by
Master_script_maker
im sorry but i don't understand what you are trying to do. why do you need php in the javascript
I will remove the php - I edited my orginal post - All I want to do is assign a value form["me"].value to a varable to be able to pass this varable out to another function like this :
PHP Code:
<script type="text/javascript"> function process_selected(form) {
alert('This is working!');
var myme = form["me"].value;
var retval = trap_calandar_jump(myme);
form.submit();
}
</script>
Now my function that resides outside the java would be this
PHP Code:
trap_calandar_jump($jump)
{
switch ($jump) {
case 1:
// Logic here Jump drop down 1
break;
case 2:
// Logic here Jump drop down 2 the $me value = '2'
break;
case 3:
// Logic here Jump drop down 3
break;
}//switch
return $something;
}
So as you see there is a lot more to this then just the origail posting. I have taken out the actual logic but I need to do some house keeping before the submitting of the actual form but it is cridical that my function returns to the javascript before submiting the form.
THANKS
Frank H. Shaw
Bookmarks