473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

dmjpro
2,476 2GB
<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
2 1893
AricC
1,892 Expert 1GB
<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
2,476 2GB
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

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

Similar topics

1
by: Lovely Angel For You | last post by:
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...
3
by: Steven K | last post by:
Hello, I am using an asp page (upload.asp) to gather information and to upload files to the web server using SoftArtisans SAUpload Tool. In the first page (upload.asp), I have a form for...
2
by: Lovely Angel For You | last post by:
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...
1
by: nick | last post by:
I have an simple ASP form and I am using the following statement to get the values: emailFrom = Request.Form.Item("ctrl:EmailFrom") emailTo = Request.Form.Item("ctrl:EmailTo") However, after...
9
by: opt_inf_env | last post by:
Hi. I found out that when one creates form which should upload files one needs to use: enctype="multipart/form-data" In other cases one needs to use:...
2
by: Velhari | last post by:
Hi all, Why we going for enctype “multipart/form-data” for uploading any file. Is there any reason please tell me... Please tell me about why we going for enctype attribute also Thanks ...
4
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to...
4
by: vunet.us | last post by:
Hi all, I am converting my app to AJAX-based. I have a form that submits some data including images. When I use AJAX XmlHttpRequest I am unable to submit the form with...
1
by: ankitmathur | last post by:
Hi friends, Recently I came across this attribute in FORM Tag. Can anyone explain what are these used for? enctype="application/x-www-form-urlencoded" enctype="multipart/form-data" ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.