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