Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

<input type="hidden" name="strInputElements" value="Name">

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mark@bilawchuk.com - 27 Jul 2007 14:48 GMT
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 action="http://cm1web1/WebSurveyComponents/script/
processform.asp" method="post">

<!-- Mandatory "hidden" objects -->
<p>
 <input type="hidden" name="strInputElements" readonly
value="Suggestion">
 <input type="hidden" name="strInputElements" value="Name">
 <input type="hidden" name="strInputElements" value="Email">
 <input type="hidden" name="strInputElements" value="Business Unit">
 <input type="hidden" name="intSendMode" readonly value="0">
 <input type="hidden" name="strSendParms" readonly
value="mark@website.com,CSPS Intranet

Suggestion Box">

Name:
<input type=text name="Name">
<br>(optional, but required if you would like a response to your
comments or suggestions)</p>
<p>Email:
 <input type=text name="Email">
 <br>(optional)
</p>
<p>Business unit:
 <input type=text name="Business Unit">
 <br>(optional)
</p>
<p>
   <textarea name="Suggestion" rows="12" cols="40">Write your
feedback or suggestion here</textarea>
   <br>
   <br>
   <input name="Send" type="submit" value="Send">
&nbsp;&nbsp;&nbsp;
   <input name="Clear" type="reset" value="Clear">
</p>
<p>(Unless you fill in your name and/or email, this form is completely
anonymous)</p>
</form>

And the email I receive looks like this...

Field = Suggestion
Response = Write your feedback or suggestion here

Field = Name
Response =

Field = Email
Response =

Field = Business Unit
Response =

The "Suggestion" field works fine, but the Name, Email and Business
Unit fields all come through with blank responses.

Any ideas?

Thanks!
Mark
Patrice - 27 Jul 2007 15:24 GMT
All your fields are named strInputElements ? It looks like you confused the
name (that you'll use in request form) and the value of the field (that is
the value that Request.form will return). Try to use a different name for
each field and use this name in Request.form.

Note this is an ASP.NET group. It looks like you are rather working with ASP
in which case it's likely better to find another group for future posts...

--
Patrice

> Forgive me if this seems like a stupid question but I need help...
>
[quoted text clipped - 65 lines]
> Thanks!
> Mark

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.