On Wed, Sep 08, 2004 at 03:13:03PM -0400, Sean Davis wrote:
> I am using HTML::Template and need to pass cgi parameters between run 
> modes.  Do I have to always use a "hidden" field, or is it adequate to 
> set the parameter via $query->param('name','value')?  In my current 
> app, I seem to have to use a hidden field and I have seen others 
> choosing to do both, also.  Can someone clarify for me?

Hey Sean,

I didn't realize you were using C::A when I replied to you earlier
today. From your post, I think that you might be confused about how web
applications process forms. Unless you are storing the values into
sessions, the short answer is to set the hidden field.

You didn't mention where this data was coming from, but I'm guessing
it's from a previous page. In that case $query->param should already be
set for you. However, it will go out of scope when processing completes
and essentially be lost. I'd need to see the script in question to be
able to tell you why a developer would set the query param and set a
hidden field.


HTH,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to