473,618 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing variables when using enctype="multip art/form-data">

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 gathering info with the following:

<form method="POST" action="upload_ ok.asp" name="frmUpload "
enctype="multip art/form-data">
<input type="hidden" name="cmdSearch " value="SearchVa lue">
<input type="hidden" name="cmdName" value="NameValu e">

The problem I am having is that when I use [
enctype="multip art/form-data" ], the second form (upload_ok.asp) , is not
picking up any of my form variables, or the first form (upload.asp) is not
sending them (cmdSearch or cmdName). If I remove the [
enctype="multip art/form-data" ] from the form in "upload.asp " then the
second form (upload_ok.asp) will get the variables.

Any help with this would be greatly appreciated...

--
Thanks in advance,

Steven
Jul 19 '05 #1
3 29092
What component are you using to handle the upload? That component should
have a form collection, and you can get the other form values from it. The
syntax will be determined by what component you're using. It will often be
something along the lines of:

Set yourUploadCompo nent = CreateObject("Y our.UploadCompo nentClassString ")
sFormValue = yourUploadCompo nent.Form.Item( "txtName").Valu e

or something like that. It should be covered in the documentation for your
component.

--

Ray at home
Microsoft ASP MVP
"Steven K" <sk****@troop.c om> wrote in message
news:OP******** ********@TK2MSF TNGP09.phx.gbl. ..
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 gathering info with the following:

<form method="POST" action="upload_ ok.asp" name="frmUpload "
enctype="multip art/form-data">
<input type="hidden" name="cmdSearch " value="SearchVa lue">
<input type="hidden" name="cmdName" value="NameValu e">

The problem I am having is that when I use [
enctype="multip art/form-data" ], the second form (upload_ok.asp) , is not
picking up any of my form variables, or the first form (upload.asp) is not
sending them (cmdSearch or cmdName). If I remove the [
enctype="multip art/form-data" ] from the form in "upload.asp " then the
second form (upload_ok.asp) will get the variables.

Any help with this would be greatly appreciated...

--
Thanks in advance,

Steven

Jul 19 '05 #2
"Steven K" wrote:
: 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 gathering info with the following:
:
: <form method="POST" action="upload_ ok.asp" name="frmUpload "
: enctype="multip art/form-data">
: <input type="hidden" name="cmdSearch " value="SearchVa lue">
: <input type="hidden" name="cmdName" value="NameValu e">
:
: The problem I am having is that when I use [
: enctype="multip art/form-data" ], the second form (upload_ok.asp) , is not
: picking up any of my form variables, or the first form (upload.asp) is not
: sending them (cmdSearch or cmdName). If I remove the [
: enctype="multip art/form-data" ] from the form in "upload.asp " then the
: second form (upload_ok.asp) will get the variables.

Looking in FileUp 5 docs, I see this:
When using an HTML form to upload files, the form submitting the file must
contain:

a.. The <form> tag attribute enctype="multip art/form-data".
b.. An <input type="file"> tag, including a name attribute.
http://support.softartisans.com/default.aspx?pageID=95
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #3
"Steven K" <sk****@troop.c om> wrote in message news:<OP******* *******@TK2MSFT NGP09.phx.gbl>. ..
If I remove the [
enctype="multip art/form-data" ] from the form in "upload.asp " then the
second form (upload_ok.asp) will get the variables.


Steven, I suspect that you're trying to use the ASP Request.Form
collection to access form variables. You can't do that when the
enctype is "multipart/form-data". To access form values use FileUp's
Form collection instead:

Instead of:

Request.Form("n ame")

Use:

FileUpObj.Form( "name")

-chris
Jul 19 '05 #4

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

Similar topics

0
5977
by: DC Gringo | last post by:
I'm getting a "BC30451: Name 'CRListType' is not declared." error Here's the top of the page where I'm getting stuck... <%@ Control Language="vb" AutoEventWireup="false" Codebehind="CRList.ascx.vb" Inherits="x.x.x.net.WebUserControl1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <% If CRListType = "full" %> ----------ERROR IS OCCURRING HERE ----------- ------------------------
0
1442
by: Ken Shaw Jnr | last post by:
Hi, I'm just wondering if anyone knows why when using links of the form <a href="/gsv/net....."> session variables are reset? Is there any way around this? cheers, Ken
4
15048
by: Exits Funnel | last post by:
Hello, I'm slightly confused about when to use parens around #included files and when to use angle brackets. I understand (I think) that the difference is that the compiler will search in its standard include directories for files included as <file> but not for those included as "file". It's clear to me then that headers for the standard libraries (eg, iostream) should be included using the '#include <iostream>' form while header...
3
2250
by: Paul Janssen | last post by:
Hello! Can anyone help me out with the following situation: (a) a single query with 550 id's in the IN-clause resulting into 800+ seconds; (b) 550 queries with a single id in the IN-clause resulting into overall time of <60 seconds; The table consists of 950.000 records, and the resultset consists of 205.000 records.
0
1329
by: Henri | last post by:
Hi, I've built a custom control named Tree in MyNameSpace.Tree compiled into dans MyNameSpace.Tree.dll I've then designed a page index.asp with its code in index.aspx.vb (class PageIndex). This page registrers my Tree control: <%@ Register TagPrefix="km" NameSpace="MyNameSpace" Assembly="tree.dll" %> Everything runs well when I compile aspx.vb myself without specifying any
0
2552
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) now renders "Page not Found" when launched on the new Windows 2003 server (ws-server1). The form is designed to use the write.asp program to write to an Acccess database and is successful on any Windows 2000 server. This is frustrating because...
0
4193
by: Ralf Gedrat | last post by:
Hello! I have a Application, this throws after some time following exception: Item has already been added. Key in dictionary: "- 1" key being added: "- 1" I use Application.Run with ApplicationContext. This error message comes from deeper levels must be thrown (mscorlib.dll?!) ?.
4
2900
by: Kevin Blount | last post by:
bit long winded this one, so stick with me: I'm trying to create a form that can go to one of 3 places, depending on various elements. My form control looks like this: <form runat="server" ID="myForm" method=POST> so, first thing: how can I dynamically set the "Action" parameter? I know that with <asp:HiddenField...for example, I have to do something like this:
1
2422
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 invalid for a strict implementation. <spanis in-line-level and <divis block-level. I don't want to mix up <span> and <div> I'm using an <asp:Buttonhere because when it switches to the URL I need to check that the user is in the correct role -...
1
14027
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(); ?> <input type="submit">
0
8212
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8153
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8304
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7126
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5552
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.