#!/usr/bin/perl -w use CGI; use warnings; $query = new CGI; print $query->header(); print $query->startform(action=>$site); print "
| cool1 | col2 Site | col4 | col5 | ",$query->popup_menu('SRC_ADDR',['ADD1','ADD2'],default=>'ADD1')," | "; # 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 "
|---|
",$query->submit(); print $query->endform; print "