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
In reply to changing form action by ralijani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |