I am not an expert on CGI.pm (as I don't use it personally) but there 
didn't seem to be any other responses so I thought I would fire one off.

If I am understanding what you asked correctly, there is no way to pass 
a "CGI object" to the new process from the old do to the fact that the 
browser and server don't maintain any type of connection/session (at 
least in normal cgi, this can however be done in mod_perl in select 
cases (aka no load balancing, etc.) for instance).  Instead when you 
print your "warning" page with the new submit form you need to print 
(probably as hidden fields) each of the query items in the form again.

check out

perldoc CGI

specifically "CREATING A HIDDEN FIELD"

http://danconia.org




Donald J Miller wrote:
> Hello everyone,
> 
> I am writing a CGI to access a database.  There is a form for the user 
> to input the record into the database.  If the user inputs a record that 
> is already in the database I would like the CGI to prompt the user they 
> are doing this and if they wish to continue then the record will be 
> updated based upon the user's input.
> 
> To implement this, I encoded a submit action inside the CGI's insert 
> function.    I've coded a function which determines how the CGI was 
> called (i.e. as a call from the insert function or as an original call 
> of the CGI from the web form).  However, I am unable to retrieve the 
> input values from the user which are stored in the CGI object.
> 
> Is there a way to retrieve the values of a CGI object from the original 
> call of a CGI after a subsequent call from a function internal to the CGI?
> 
> Below are the relevant pieces of source code.  Thanks for any assistance.
> Don
>  
>  
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to