473,386 Members | 1,798 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,386 software developers and data experts.

Forms EncType Problem !

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.

Is it that I cant get text data when I use
EncType="multipart/form-data".

Please help in solving this problem.

Love
Lovely

_________________________________________________

<tr>
<td width="100%" valign="top">
<form method="POST" action="data_save.asp"
EncType="multipart/form-data">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td width="100%" colspan="2">Add a new Main
Category</td>
</tr>
<tr>
<td width="20%">&nbsp;</td>
<td width="80%"></td>
</tr>
<tr>
<td width="20%">Name</td>
<td width="80%"><input type="text" name="name"
size="43"></td>
</tr>
<tr>
<td width="20%">Image</td>
<td width="80%"><input type="text"
name="image"></td>
</tr>
<tr>
<td width="20%">Description</td>
<td width="80%"><textarea rows="2"
name="description" cols="37"></textarea></td>
</tr>
</table>
</div>
<p align="center"><input type="submit" value="Submit"
name="B1"></p>
<input type="hidden" name="Category" value="0">
<input type="hidden" name="Choice" value="1">
</form>
</td>
</tr>
Jul 19 '05 #1
1 1343
You have to get the other form data from the form collection in your upload
component. What upload component are you using?

Ray at work
"Lovely Angel For You" <lo******************@yahoo.com> wrote in message
news:55**************************@posting.google.c om...
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.

Is it that I cant get text data when I use
EncType="multipart/form-data".

Please help in solving this problem.

Love
Lovely

_________________________________________________

<tr>
<td width="100%" valign="top">
<form method="POST" action="data_save.asp"
EncType="multipart/form-data">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td width="100%" colspan="2">Add a new Main
Category</td>
</tr>
<tr>
<td width="20%">&nbsp;</td>
<td width="80%"></td>
</tr>
<tr>
<td width="20%">Name</td>
<td width="80%"><input type="text" name="name"
size="43"></td>
</tr>
<tr>
<td width="20%">Image</td>
<td width="80%"><input type="text"
name="image"></td>
</tr>
<tr>
<td width="20%">Description</td>
<td width="80%"><textarea rows="2"
name="description" cols="37"></textarea></td>
</tr>
</table>
</div>
<p align="center"><input type="submit" value="Submit"
name="B1"></p>
<input type="hidden" name="Category" value="0">
<input type="hidden" name="Choice" value="1">
</form>
</td>
</tr>

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
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:...
3
by: cass27 | last post by:
Does anyone know if there is a method I could use using javascript to allow users to attatch a photograph to the form they are filling in? thanx for your help cass27
2
dmjpro
by: dmjpro | last post by:
<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
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...
2
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I have a MasterPage. The MasterPage actually contains the <formtag which is used throughout the site. On just certain pages that use that MasterPage, I need the "enctype" for the <formtag to be...
7
by: vunet | last post by:
My form uploads files by submitting them to hidden IFrame. I set enctype "multipart/form-data" dynamically. This works great everywhere but IE6. I discovered that in IE6 I need to set encoding...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.