1
2
3
|
<?php echo "<script>test('$_POST[userid]');</script> " ; ?> |
在上面的$_POST['']也可适用$_SESSION[' '];
1
2
3
4
5
|
<?php $para = "hello boby!" ; echo $para ; echo "<script> var para=\"$para\"; alert(para);</script>" ; ?>; |