Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to pass form data to a onclick=javascript:new.window perl script

by Abigail-II (Bishop)
on Feb 17, 2004 at 10:06 UTC ( [id://329546]=note: print w/replies, xml ) Need Help??


in reply to How to pass form data to a onclick=javascript:new.window perl script

http://xww.test.com/cgi-bin/cgiwrap/rootcgi/create_data.pl is just a plain request, no query is passed here. Then the URL would be of the form http://xww.test.com/cgi-bin/cgiwrap/rootcgi/create_data.pl?key=value;key=value.

So, you either have to print that when creating the page, or, if this someway has to be done on the fly, you'd need to find yourself a javascriptmonks site, as the latter option would be a javascript problem, not a Perl problem.

Abigail

  • Comment on Re: How to pass form data to a onclick=javascript:new.window perl script

Replies are listed 'Best First'.
Re: Re: How to pass form data to a onclick=javascript:new.window perl script
by Asgaroth (Novice) on Feb 17, 2004 at 10:34 UTC
    Hi Abigail-II

    So if I do something like:

    http://xww.test.com/cgi-bin/cgiwrap/rootcgi/create_data.pl?$front_page +->param('machine_name');$front_page->param('reason')

    Do you think that that may pass the parameter's selected by the user, I'm sure those would be set at the point where the user clicks the submit button?

    Thanks
    Asgaroth
      Oops, I made a booboo, the key=value pair, the url would be

      http://xww.test.com/cgi-bin/cgiwrap/rootcgi/create_data.pl?machine_nam +e=$front_page->param('machine_name');reason=$front_page->param('reaso +n')
      Do you think this may work?

      Thanks
      Asgaroth
        What happened when you tried?

        Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://329546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2025-04-25 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.