By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,081 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

enctype attribute of form tag --- problem???????

dmjpro
100+
P: 2,476
<form name ="" method = "" action = "" enctype = "">


if i write in js ....

form_name.method= ""; //it wotks
form_name.action ="" //it works
form_name.enctype = "" //it does not work


actually i want to submit the form in enctype = 'multipart/form-data'
in a particular case but rest will we as usual
if i set inside the form tag .. enctype = 'multipart/form-data' //it works

one more problem ..
if i set enctype = 'multipart/form-data' inside form tag it only files content to be uploaded but rest form datas are not allowed

can anyone solve my problem...........


thanx in advance
Feb 13 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,892
<form name ="" method = "" action = "" enctype = "">


if i write in js ....

form_name.method= ""; //it wotks
form_name.action ="" //it works
form_name.enctype = "" //it does not work


actually i want to submit the form in enctype = 'multipart/form-data'
in a particular case but rest will we as usual
if i set inside the form tag .. enctype = 'multipart/form-data' //it works

one more problem ..
if i set enctype = 'multipart/form-data' inside form tag it only files content to be uploaded but rest form datas are not allowed

can anyone solve my problem...........


thanx in advance
Have you found a fix for this yet dmjpro?

Aric
Feb 22 '07 #2

dmjpro
100+
P: 2,476
thanx for ur response ......

i think is not possible to set the enctype manually ...

and whenever i set the enctype attribute multipart/form-data then only the contents of file fields control sent to server ,others are neglected ....
Feb 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.