I am tidying up a script and I am replacing some HTML (which works) with these CGI commands.
The incoming param has a value and I want to replace its value with 'viewcal'. The word 'viewcal' is being printed before the drop down menu.
Please - Someone tell me what I am missing?
Is there a form end command instead of the HTML?
Keith
The incoming param has a value and I want to replace its value with 'viewcal'. The word 'viewcal' is being printed before the drop down menu.
Please - Someone tell me what I am missing?
Code:
print $query->startform(-method=>'POST',
-action=>'thatjob.cgi',
-name=>'viewform');
print $query->param(-name=>'call',
-value=>'viewcal');
print $query->popup_menu(-name=>'locs',
-values=>\@LOCATIONS,
-onChange=>'viewform.submit()');
print '</form>';
Keith