ralijani has asked for the wisdom of the Perl Monks concerning the following question:
Hi dear friends
I have a cgi page written by perl my code is :
#!/usr/bin/perl -w use CGI; use warnings; $query = new CGI; print $query->header(); print $query->startform(action=>$site); print "<TABLE CELLPADING=0 BORDER=0 ><TR>"; print "<TH>cool1</TH><TH >col2 Site</TH><TH col3</TH><TH>col4</TH><TH +>col5</TH></TR>"; print "<TH>",$query->popup_menu('SRC_ADDR',['ADD1','ADD2'],default=>' +ADD1'),"</TH>"; # some other perl code # Now i want to change the action of form # if SRC_ADDR=ADD1 action of form should change to http://192.168.100 +.10/cgi/bin/addr1.cgi # if SRC_ADDR=ADD2 action of form should change to http://192.168.100 +.11/cgi/bin/addr2.cgi #Other perl code $temp=$temp+1; print "</TABLE>\n</DIV>\n"; print "<P>",$query->submit(); print $query->endform; print "<HR>\n";
How can i change the action of my form during the program thanks for your help
20040316 Edit by Corion: Added formatting, code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: changing form action
by tinita (Parson) on Mar 16, 2004 at 13:53 UTC | |
|
Re: changing form action
by Happy-the-monk (Canon) on Mar 16, 2004 at 13:57 UTC | |
by ralijani (Acolyte) on Mar 16, 2004 at 14:47 UTC | |
by bassplayer (Monsignor) on Mar 16, 2004 at 15:11 UTC | |
|
Re: changing form action
by Rich36 (Chaplain) on Mar 16, 2004 at 14:57 UTC |