473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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">
  3.  
  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
  14.  
  15. Suggestion Box">
  16.  
  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?

Thanks!
Mark
Jul 27 '07 #1
1 7025
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

8
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.