#!/usr/bin/perl -w use CGI; use warnings; $query = new CGI; print $query->header(); print $query->startform(action=>$site); print ""; print ""; print ""; # 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 "
cool1col2 Sitecol4col5
",$query->popup_menu('SRC_ADDR',['ADD1','ADD2'],default=>'ADD1'),"
\n\n"; print "

",$query->submit(); print $query->endform; print "


\n";