Mike Martin wrote:

: I have the following code which should
: 
: 1. Give user a choice of actions
: 2. Based on these go to the specified script
: 
: I have the following issues
: 
: 1. The Submit button needs clicking twice after selection

    The first time the script through the 'select' field is empty
and '' is passed into the form 'action' attribute. CGI.pm changes
this to the name of this script.

    If '5' were chosen, the second time through the script the
'select' field is '5' and '/cgi-bin/finance.pl' is passed into
the form 'action' attribute.

    You can remedy this by calling '/cgi-bin/finance.pl' from
the script rather then printing the form and then going to the
chosen script.

    A better solution might include modules instead of scripts.


: 2. Only one value can be chosen, to choose another the form
: must be reloaded from scratch (ie: reload button does not
: work, only go etc)

    That sounds like a browser caching problem. Search the CGI.pm
docs for 'cache' for details. You can also add a reset button for
the form.



HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

Don't tread on my bandwidth. Trim your posts.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to