473,386 Members | 1,830 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.

Using <form ... enctype="multipart/form-data">

I am using an upload util and I was told I need this option,
enctype="multipart/form-data", in my FORM tag. How do I reference the other
form fields within the form from ASP?

THanks,

--
David Lozzi
Associated Business & Technology Group
www.associatedbtg.com

I should've known that....but I had a brain fart.
Jul 19 '05 #1
5 19835
It depends on the upload component you're using. It should be in the
documentation for the component.

Ray at work

"David Lozzi" <dl****@associatedbtg.com> wrote in message
news:ue*************@tk2msftngp13.phx.gbl...
I am using an upload util and I was told I need this option,
enctype="multipart/form-data", in my FORM tag. How do I reference the other form fields within the form from ASP?

Jul 19 '05 #2
"David Lozzi" <dl****@associatedbtg.com> wrote in message
news:ue*************@tk2msftngp13.phx.gbl...
I am using an upload util and I was told I need this option,
enctype="multipart/form-data", in my FORM tag. How do I reference the other form fields within the form from ASP?


http://www.15seconds.com/issue/981121.htm

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
If i remove the enctype, then I get an error stating "Cannot call BinaryRead
after using Request.Form collection" on this line:

biData = Request.BinaryRead(Request.TotalBytes)

By the looks at it, I cannot use the enctype for my basic form values?

--
David Lozzi
Associated Business & Technology Group
www.associatedbtg.com

I should've known that....but I had a brain fart.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O9*************@tk2msftngp13.phx.gbl...
It depends on the upload component you're using. It should be in the
documentation for the component.

Ray at work

"David Lozzi" <dl****@associatedbtg.com> wrote in message
news:ue*************@tk2msftngp13.phx.gbl...
I am using an upload util and I was told I need this option,
enctype="multipart/form-data", in my FORM tag. How do I reference the

other
form fields within the form from ASP?


Jul 19 '05 #4
Why don't you tell us what upload component you're using?

Ray at work

"David Lozzi" <dl****@associatedbtg.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If i remove the enctype, then I get an error stating "Cannot call BinaryRead after using Request.Form collection" on this line:

biData = Request.BinaryRead(Request.TotalBytes)

By the looks at it, I cannot use the enctype for my basic form values?

--
David Lozzi
Associated Business & Technology Group

Jul 19 '05 #5
anyway, once you have oinvoqued the readbinary method you cannot ask for a
request.form("param").
you will have to handle the others parameters in the smae components or
parse the string (the result of readbinary) to find your others parameters
Jul 19 '05 #6

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

Similar topics

4
by: John MacIntyre | last post by:
Hi, Using the script below, when you click on the radio button beside click here .... the first row shrinks. Has anybody else ever experienced this? Does anybody know of a logical...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
2
by: Laermans_k | last post by:
Hi, Does anyone have a solution to use the <input type="file" id="filechooser"> and the <input type="submit" id="submitbutton"> in 1 button click? I've already tried to create a javascript...
1
by: Mark Sandfox | last post by:
Is there a way to restrict the user to only selecting and sending either a ..gif or .jpg. Everything I have read says this option can not be done by design (security reasons). I find that irronic...
0
by: Joeyej | last post by:
Hi - I'm trying to move/use a web form (containing some javascript field checks) previously hosted on a Windows 2000 server. However, the FORM METHOD="post..." command in the form (shown below)...
1
by: mark4asp | last post by:
<form runat="server"automatically adds <divtag to code contained within. Is there a way to stop that? Mixing block-level elements with inline-level elements messes up the HTML becasuse that is...
18
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the...
1
by: mark | last post by:
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form...
3
by: eeeeman | last post by:
This one has really got me! Im trying to write a value to a input type="file" form element using client-side javascript. I have tried the obvious, simply writing: <input type="file" ...
1
by: ChollaPete | last post by:
This code: <form action="processScan.php" method="get"> <p> <?php print "Scan name: <input type=\"file\" name=\"tScanFileName\" value= \"{$scanFileName}\"><br>"; addHiddenCarryons(); ?>...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
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...

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.