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