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

M

mark

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="(e-mail address removed),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
 
P

Patrice

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top