Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

When I am at a page which has a param of page=>'thispage' I try to create a form like so
$page="nextpage"; $query->textfield('page',$page);
The page textfield now has a value of thispage and not nextpage how can I force CGI to not use the current value of the parameter?
  • Comment on How can I force CGI to use the variables I give it when creating a form
  • Download Code

Replies are listed 'Best First'.
Re: How can I force CGI to use the variables I give it when creating a form
by merlyn (Sage) on Dec 19, 2000 at 23:17 UTC
Re: How can I force CGI to use the variables I give it when creating a form
by steveAZ98 (Monk) on Dec 20, 2000 at 19:45 UTC
    You can also set it explicitly
    $query->param('page'=>'nextpage');
    HTH