472,780 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

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

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:
Expand|Select|Wrap|Line Numbers
  1. <form action="http://cm1web1/WebSurveyComponents/script/
  2. processform.asp" method="post">
  4. <!-- Mandatory "hidden" objects -->
  5. <p>
  6. <input type="hidden" name="strInputElements" readonly
  7. value="Suggestion">
  8. <input type="hidden" name="strInputElements" value="Name">
  9. <input type="hidden" name="strInputElements" value="Email">
  10. <input type="hidden" name="strInputElements" value="Business Unit">
  11. <input type="hidden" name="intSendMode" readonly value="0">
  12. <input type="hidden" name="strSendParms" readonly
  13. value="ma**@website.com,CSPS Intranet
  15. Suggestion Box">
  17. Name:
  18. <input type=text name="Name">
  19. <br>(optional, but required if you would like a response to your
  20. comments or suggestions)</p>
  21. <p>Email:
  22. <input type=text name="Email">
  23. <br>(optional)
  24. </p>
  25. <p>Business unit:
  26. <input type=text name="Business Unit">
  27. <br>(optional)
  28. </p>
  29. <p>
  30. <textarea name="Suggestion" rows="12" cols="40">Write your
  31. feedback or suggestion here</textarea>
  32. <br>
  33. <br>
  34. <input name="Send" type="submit" value="Send">
  35. &nbsp;&nbsp;&nbsp;
  36. <input name="Clear" type="reset" value="Clear">
  37. </p>
  38. <p>(Unless you fill in your name and/or email, this form is completely
  39. anonymous)</p>
  40. </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?

Jul 27 '07 #1
1 6965
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...
Jul 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Joe Kovac | last post by:
Hi! I want the user to edit a textbox which allows following values only: - Time (Format: 23:59, HH:MM) or - NULL (empty string) What can I do, so that this works kinda automatically, meaning...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: lllomh | last post by:
How does React native implement an English player?
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.