I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be
devoid of any talk about ASP (and rather filled with spam).
I have a very simple form here that loops back into upon submission:
All I'm trying to do is test that the hidden field is passing properly (it's
not). It works fine when I remove the encoding property from the FORM tag,
but I need it to build a file upload component. I've noticed quite a few
messages on various newsgroups and forums regarding this issue, but none
seem to have an answer..
<% option explicit %>
<html>
<head>
<title>Test</title>
</head>
<body>
<% Response.Write( "Hidval: " & request.Form("h idval")) %>
<form action="upload. asp"
enctype="multip art/form-data" method="post"
name="f" id="f">
Pick a file to upload:<br />
<input type="file" name="test" size="50" ID="File1"/>
<input type="hidden" name="hidval" value="test">
<input type="submit" value="submit" ID="Submit1" NAME="Submit1"/>
</form>
</body>
</html>I've been messing with this all day without luck, any insight would
be greatly appreciated! 3 1695
Hi, Jon Petrak,
Most probably it is the parser that doesn't parse correctly the posted data.
As I don't have some code to check, could you try moving the hidden before
the input type=file control and then testing the value in the second page.
Hope this helps
Martin
"Jon Petrak" <jp@nospam.no > wrote in message
news:gQD0c.4051 4$A12.30527@edt nps84... I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be devoid of any talk about ASP (and rather filled with spam).
I have a very simple form here that loops back into upon submission:
All I'm trying to do is test that the hidden field is passing properly
(it's not). It works fine when I remove the encoding property from the FORM tag, but I need it to build a file upload component. I've noticed quite a few messages on various newsgroups and forums regarding this issue, but none seem to have an answer.. <% option explicit %> <html> <head> <title>Test</title> </head> <body> <% Response.Write( "Hidval: " & request.Form("h idval")) %> <form action="upload. asp" enctype="multip art/form-data" method="post" name="f" id="f"> Pick a file to upload:<br /> <input type="file" name="test" size="50" ID="File1"/>
<input type="hidden" name="hidval" value="test"> <input type="submit" value="submit" ID="Submit1" NAME="Submit1"/> </form> </body> </html>I've been messing with this all day without luck, any insight would be greatly appreciated!
Tried that, with no luck. Going to take a look at the http headers to see if
I can narrow this down any.
"Martin Dechev" <de*******@hotm ail.com> wrote in message
news:OJ******** *****@TK2MSFTNG P12.phx.gbl... Hi, Jon Petrak,
Most probably it is the parser that doesn't parse correctly the posted
data. As I don't have some code to check, could you try moving the hidden before the input type=file control and then testing the value in the second page.
Hope this helps Martin "Jon Petrak" <jp@nospam.no > wrote in message news:gQD0c.4051 4$A12.30527@edt nps84... I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be devoid of any talk about ASP (and rather filled with spam).
I have a very simple form here that loops back into upon submission:
All I'm trying to do is test that the hidden field is passing properly (it's not). It works fine when I remove the encoding property from the FORM
tag, but I need it to build a file upload component. I've noticed quite a few messages on various newsgroups and forums regarding this issue, but none seem to have an answer.. <% option explicit %> <html> <head> <title>Test</title> </head> <body> <% Response.Write( "Hidval: " & request.Form("h idval")) %> <form action="upload. asp" enctype="multip art/form-data" method="post" name="f" id="f"> Pick a file to upload:<br /> <input type="file" name="test" size="50" ID="File1"/>
<input type="hidden" name="hidval" value="test"> <input type="submit" value="submit" ID="Submit1" NAME="Submit1"/> </form> </body> </html>I've been messing with this all day without luck, any insight
would be greatly appreciated!
For future reference, the issue was that ASP does not natively support that
encoding type and the data has to be parsed manually.
"Jon Petrak" <jp@nospam.no > wrote in message
news:goO0c.4077 1$A12.13383@edt nps84... Tried that, with no luck. Going to take a look at the http headers to see
if I can narrow this down any.
"Martin Dechev" <de*******@hotm ail.com> wrote in message news:OJ******** *****@TK2MSFTNG P12.phx.gbl... Hi, Jon Petrak,
Most probably it is the parser that doesn't parse correctly the posted data. As I don't have some code to check, could you try moving the hidden
before the input type=file control and then testing the value in the second
page. Hope this helps Martin "Jon Petrak" <jp@nospam.no > wrote in message news:gQD0c.4051 4$A12.30527@edt nps84... I'm sorry if this is the wrong newsgroup, but the ASP ones seem to be devoid of any talk about ASP (and rather filled with spam).
I have a very simple form here that loops back into upon submission:
All I'm trying to do is test that the hidden field is passing properly (it's not). It works fine when I remove the encoding property from the FORM tag, but I need it to build a file upload component. I've noticed quite a
few messages on various newsgroups and forums regarding this issue, but
none seem to have an answer.. <% option explicit %> <html> <head> <title>Test</title> </head> <body> <% Response.Write( "Hidval: " & request.Form("h idval")) %> <form action="upload. asp" enctype="multip art/form-data" method="post" name="f" id="f"> Pick a file to upload:<br /> <input type="file" name="test" size="50" ID="File1"/>
<input type="hidden" name="hidval" value="test"> <input type="submit" value="submit" ID="Submit1" NAME="Submit1"/> </form> </body> </html>I've been messing with this all day without luck, any insight would be greatly appreciated!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Niels Berkers |
last post by:
Hi,
i'd like to host my web pages using multiparts to reduce the number of
hits on the server.
i know this isn't a real PHP subject, but i'll try it anyway.
i've been searching the web for solutions and examples with no succes.
does anybody know a good starting point
hints / tips are also welcome
Regards
|
by: Hunter Peress |
last post by:
I have been unable to write a script that can do (and receieve) a multipart form upload.
Also, it seems that there really are differences between python's implementation and else's.
Can someone please prove me wrong with a script that works with itself AND with example 18-2
from php: http://www.php.net/manual/en/features.file-upload.php
__________________________________
|
by: Travis Pupkin |
last post by:
Hi,
I have a form that triggers the sending of an e-mail via CDOSYS. I'd
like to make this a nice HTML-formatted multipart message, but for some
reason the text version is coming through blank.
Originally I thought I had read that CDO has an automatic text converter
that will turn the HTML code into a plain TEXT message, but when that
didn't work (and I couldn't find anything further about it), I added a
custom text line like this:
|
by: c# newbie |
last post by:
System.Web.Mail.MailFormat
The enumerated values for MailFormat are:
Html
Text
How can I send a multipart/alternative format message ?
|
by: John Fereira |
last post by:
So, one of the limitations of multipart-form handling is that when an <input
type="file" ..> tag is used it will bring up a window which allows a user to
select a file for upload but won't allow the user to select multiple files.
As you may know, the tag produces a text input field with an adjacent button
for selecting a file from the local file system.
As I would like to be able to allow the user to upload an arbitrary number
of files...
| |
by: yoram.ayalon |
last post by:
Hi,
I need to create a multipart request to UPS manifest upload electronic
service. UPS wants the request to consist of a series of headers and
bodies, and its not clear how can I use the HttpWebRequest object to do
this. there is the Headers collection, but I don't think it will give
me the control we need.
is there a low-level way to create the entire stream and attach to the
object before posting ?
|
by: DMG |
last post by:
I have <identity impersonate = "true" /& <authentication
mode="Windows"/in the web.config. This is a 2.0 site. My Goal: I
want to simply have the user browse to a file on a mapped drive and get
the UNC for that file and eventually save that unc path to the database
as a link. The problem is depending on office we have the same drive
letter mapped to different servers.
My current test works when I run everything locally and maps...
|
by: madmak |
last post by:
Hi, I am a noob with PHP and need some asistance regarding PHP and lotus notes. I am trying to create a multipart message in PHP to send mail via lotus notes.
Here is the code snippet.
<?php
---some code here --
$session_notes = new COM("Lotus.NotesSession");
$session_notes->Initialize("<password>");
|
by: fnoppie |
last post by:
Hi,
I am near to desperation as I have a million things to get a solution
for my problem. I have to post a multipart message to a url that
consists of a xml file and an binary file (pdf). Seperately the
posting words fine but when I want to create one multipart message
with both then things go wrong.
The binary file is converted and of datatype byte()
The xml file is just a string.
|
by: pezkel |
last post by:
Hi,
For the last two weeks I have been looking for a solid way to create an asp page that can upload a binary file and an xml file in a multipart message to a third party website.
I am on the verge of giving (and cracking) up so I would appreciate any pointers. I have used:
http://www.motobit.com/tips/detpg_uploadvbsie/
and end up with the problem that I have a byte array for the binary file and a string for the xml. I have tried...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |