-
- jsvar = ;
- document.write(jsvar); // Test to see if its prints 10:
复制代码
Form variable to Javascript variable:
-
- jsvar = document.myform4.formvar.value;
- document.write(jsvar) // test
复制代码
PHP variable to Form variable:
-
- // PHP code inside HTML!!
复制代码
Javascript variable to Form variable:
-
- jsvar=10;
- document.myform3.formvar.value = jsvar;
复制代码
怎么样,以上代码对您有所帮助吗?
|