Syntactic Confectionery Delight | |
PerlMonks |
Re: Using CGI (Perl) and javascript at the same timeby arden (Curate) |
on Apr 06, 2004 at 18:13 UTC ( [id://343051]=note: print w/replies, xml ) | Need Help?? |
krt6, have your javascript assign the hostname value to a hidden FORM field, then either wait until the user submits the form requesting the next page from your CGI or have the javascript auto-submit the form.
Then you just have to handle that field on the server side in your Perl script. Be sure to handle not getting any hostname if the user is going through anonymizer.com or has some other protection in place to prevent your javascript from running. - - arden.
In Section
Seekers of Perl Wisdom
|
|