469,275 Members | 1,443 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

passing variable's value from JavaScript and receiving in perl script

how can i pass a variable's value from javascript to perl script?
how can i receive that value in perl script?


Please help me!!!
Sep 11 '07 #1
2 1441
gits
5,390 Expert Mod 4TB
heya ...

i'm not familiar with perl ... but i guess that you pass the js-variable-value with a query-string for example (that you may set with javscript dynamically), so have a look at the pseudocode below:

Expand|Select|Wrap|Line Numbers
  1. uri?varname=varvalue
may be that helps?

kind regards
Sep 11 '07 #2
acoder
16,027 Expert Mod 8TB
Alternatively, you can set the value of a hidden form element to the variable value. Submit the form and you'll receive this variable value as a form value in your Perl script. If the method is GET instead of POST, it'll be similar to gits' suggestion (in the URL).
Sep 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Marty Meyers | last post: by
2 posts views Thread by pleaseexplaintome | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.