Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why won't form send hidden value?

Status
Not open for further replies.

gtubb

Programmer
Jan 15, 2004
24
GB
Hi folks

I have a simple form with a hidden value:

<form method="POST" enctype="multipart/form-data" action="edit_comment.asp" name=submitform>
input type=hidden name="email" value="wrg">
input type=SUBMIT name="submit" value="Edit the message">

But for some reason the value is not being passed. Am I missing something obvious?

Gerard
 
If you dont use this code for uploading some files then you have to take off the enctype property
Code:
<form method="POST" action="edit_comment.asp" name=submitform>
input type=hidden name="email"  value="wrg">
input type=SUBMIT name="submit" value="Edit the message">
</form>

When you are using enctype="multipart/form-data", therefor you will lose any Request.Form colection. It only works as QueryString.
But also i presume that you are using an upload component who should give you access to the Form object.


________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
I cut and pasted the code from a script that used AspUpload - and forgot to delete the enctype.


Thank you for your help

Gerard
 
Ehehe, dont worry that hapens lot of times when using old code.

I've forgot 1 time to add back "!" negation operator to an program and it took 1 week for me to realize that.
I bet if i would showed to somone it will eventually showed me;)

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top