in reply to changing form action

How can i change the action of my form during the program

You can make the for chose some values popup_menu to return to the script mentioned in the <form>-tag. You can't however, change the name of that script, as far as I know.

That script can call a different script if you like. It could

  1. redirect the browser to a different URL location and maybe provide some of the values of the form to the remote CGI.
  2. use LWP::Simple to call the remote programme and work on its output.
  3. Sören

Replies are listed 'Best First'.
Re: Re: changing form action
by ralijani (Acolyte) on Mar 16, 2004 at 14:47 UTC
    when i use :
    $query->header(); # some other code print $query->redirect('http://127.0.0.2/cgi-bin/18.cgi?12');
    it returns: Status: 302 Moved Location: http://127.0.0.2/cgi-bin/18.cgi?12 and if i remark $query->header(); it gives : Internal Server Error
      You shouldn't specify a header when you use the redirect() method.

      The Internal Server Error may be coming from the correct place. What do you get when you go to the link (http://127.0.0.2/cgi-bin/18.cgi?12) using your browser?

      bassplayer