lovely_angel_for_you@yahoo.com (Lovely Angel For You) wrote:
[color=blue]
>Dear Friends
>Hope you all are doing great.
>
>I am using a form to add text data to the database. With this form I
>am also using a file field to upload a image file.
>
>To use the first thing that is just data I dont have to write EncType
>as it picks the default one. But to use the second one that is to
>upload an image. I need to write EncType = "multipart/form-data". When
>I do this the text passed from the other text field goes blank.
>
>Why is it happening.
>[/color]
Because your server-side process (you didn't say what you're using)
conveniently sets Request.Form variables (or the equivalent) for you
if and only if you use the default enctype (as is the case in Active
Server Pages). Otherwise, you're on your own to parse them out of the
request.
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ๔ter le premier point de mon adresse de courriel.