get: <script> name="xxx"; window.location='xxx.php?name='+name; </script>
post: <script> name="xxx"; </script> <form name=form1 method=post onsubmit="this.name.value=name"> <input type=hidden name="name"> </form>