in reply to How to pass form data to a onclick=javascript:new.window perl script

I don't write JS all the time, but I know that you can create a form with hidden fields, and have your function do a form.submit(). It doesn't use the CGI module, but it does avoid the ugly get method.
<html> <body> <form name="myform" action="http://perlmonks.org/index.pl?" method="po +st"> <input type="hidden" name="node" value="sporty"> </form> <a href="#" onClick="myform.submit()">clicky!</a> </body> </html>
I did this using safari. Try it in moz, try it in ie.

Update: Case of morning eyes. I read through the thread forgetting it was "new window".


Play that funky music white boy..
  • Comment on Re: How to pass form data to a onclick=javascript:new.window perl script
  • Download Code