in reply to Post from jQuery to Perl - can't access parameters
You have to send the data with the .post.
$.post("/cgi-bin/hello_world.pl",$("#frm_name_1").serialize());
where #frm_name_1 is the id of your form. Serialize encodes the set of form elements as a string for submission.
This would be even cleaner
$.post("/cgi-bin/hello_world.pl",$(this).serialize());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Post from jQuery to Perl - can't access parameters
by stuckdev (Initiate) on Mar 13, 2013 at 15:49 UTC | |
by 3blindmice (Initiate) on Mar 13, 2013 at 16:16 UTC | |
by stuckdev (Initiate) on Mar 13, 2013 at 16:17 UTC |