Re: [PHP] Strange Form Error
On Thu, 30 Aug 2001 02:25, PHP List wrote: Hi, Can anyone tell me why php is behaving like this? If I use enctype=multipart/form-data, it seems the first form field is not passed to php. ex: form method=post action=products.asp enctype=multipart/form-data input type=hidden name=cmd value=edit $cmd will not be passed to php, I have to do this: form method=post action=products.asp enctype=multipart/form-data input type=hidden name=null value=null input type=hidden name=cmd value=edit Now I can use $cmd. Is this normal? If you are trying to upload a file, I think you need to have a hidden field for MAX_FILE_SIZE - check the Handling File Uploads section of the manual. I do have that field later on in the form and the uploading is working fine. It just seems to ignore the first form field. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Strange Form Error
Hi, Can anyone tell me why php is behaving like this? If I use enctype=multipart/form-data, it seems the first form field is not passed to php. ex: form method=post action=products.asp enctype=multipart/form-data input type=hidden name=cmd value=edit $cmd will not be passed to php, I have to do this: form method=post action=products.asp enctype=multipart/form-data input type=hidden name=null value=null input type=hidden name=cmd value=edit Now I can use $cmd. Is this normal? Windows Law 1: What boots up must come down... All I ask of life is a constant and exaggerated sense of my own importance. Chris Kovalcik Systems Administrator Interactive Broadcasting Corporation [EMAIL PROTECTED] - Creators of: BC Adventure Network www.bcadventure.com BC Books www.bcbooks.com Casting Shadows www.castingshadows.com Cowboylife www.cowboylife.com Fish BC www.fishbc.com Western Fly Fisher Magazine www.westernflyfisher.com
Re: [PHP] Strange Form Error
On Thu, 30 Aug 2001 02:25, PHP List wrote: Hi, Can anyone tell me why php is behaving like this? If I use enctype=multipart/form-data, it seems the first form field is not passed to php. ex: form method=post action=products.asp enctype=multipart/form-data input type=hidden name=cmd value=edit $cmd will not be passed to php, I have to do this: form method=post action=products.asp enctype=multipart/form-data input type=hidden name=null value=null input type=hidden name=cmd value=edit Now I can use $cmd. Is this normal? If you are trying to upload a file, I think you need to have a hidden field for MAX_FILE_SIZE - check the Handling File Uploads section of the manual. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Is is the verb for when you don't want a verb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]