Wouldnt this work?
<form name=myForm action=sendPage.php action=post>
<script language = javascript>
function myFunc(){
    var myJavaScriptVar =  initialValue...
    ....Do What Ever (manipulate myVar)...

    document.myForm.fieldName.value = myJavaScriptVar;

</script>

<input type=hidden name=fieldName value=init>

<?php
    //   If the function my Func has been executed you can do
    //  the following...
    echo "<input type=hidden name=fieldName value=$fieldName>";
?>

//  If you are not running apache (if running IIS) you may get an undefined
//  variable notice on running your script to rid yourself of
//  this do the following instead of the php above...
<?php
    if(isset($fieldName)){
        echo "<input type=hidden name=fieldName value=$fieldName>";
    }
?>

Hope this Helps...

Spike...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to