471,853 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

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 1505
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
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.