R
Reshma
I'm new to Perl CGI and Javascript.
I have a page where there's a dropdown. When a user selects an item in
the dropdown, it opens up a page (calling a CGI here). Since there's no
button to click after the dropdown option is selected, on change of the
dropdown item, I could call the CGI and pass the content only as a
query string (GET request) or I could call an HTM page with a form as
an intermediate step and onsubmit of the form have the CGI invoked
(using POST request).
When I call the CGI and pass content as query string, there's
limitation in the length of the query string. it cannot exceed 1024
characters. For me to use the post method, I need to have HTML form as
the first screen.
When I call the CGI upon selection of dropdown item, I'm able to access
the content on the page where the dropdown is, on the CGI using
javascript in the CGI script. Now, I need to pass the value of this
javascript variable to a perl variable which performs other CGI
functions.
my var = 'Select HTML';
$input_string = "var"; - is this possible?
can some one tell me how I can achieve what I'm trying to do?
Thanks
I have a page where there's a dropdown. When a user selects an item in
the dropdown, it opens up a page (calling a CGI here). Since there's no
button to click after the dropdown option is selected, on change of the
dropdown item, I could call the CGI and pass the content only as a
query string (GET request) or I could call an HTM page with a form as
an intermediate step and onsubmit of the form have the CGI invoked
(using POST request).
When I call the CGI and pass content as query string, there's
limitation in the length of the query string. it cannot exceed 1024
characters. For me to use the post method, I need to have HTML form as
the first screen.
When I call the CGI upon selection of dropdown item, I'm able to access
the content on the page where the dropdown is, on the CGI using
javascript in the CGI script. Now, I need to pass the value of this
javascript variable to a perl variable which performs other CGI
functions.
my var = 'Select HTML';
$input_string = "var"; - is this possible?
can some one tell me how I can achieve what I'm trying to do?
Thanks