How to retrieve form field value if form is EncType=multipart/form-data Form?

How to retrieve form field value if form is EncType=multipart/form-data Form?

Post by garethdjam » Sat, 21 May 2005 17:53:00


in the module you can use context.Request.Form

This contains the form values (and the hidden values)
 
 
 

How to retrieve form field value if form is EncType=multipart/form-data Form?

Post by Li Zhan » Sun, 22 May 2005 01:29:32

Thanks for your reply. Since the form is used for uploading files, The
enctype already set to be multipart/form-data, I don't think we can use
request.form or request.params to access those fields.

Actually, I tried both, it won't work, so I am wondering is there any
way I could retrieve the value of those fields?

Thanks!

 
 
 

How to retrieve form field value if form is EncType=multipart/form-data Form?

Post by Li Zhan » Sun, 22 May 2005 03:50:37

I tried, you are right. I can access them by Request.Form. I made a
mistake. Sorry. Thanks for your reply. :)