Forum Moderators: open
I'd assume that this is possible using javascript to trigger a hidden field for each of the above messages, but I appreciate that if javascript is turned off in the browser, that ain't going to work. So - is there another way of doing this?
If javascript is the best way, I'd really appreciate some pointers in how to get started with this. Thanks in advance for any assistance/advice.
Many coders "redirect" to a thank you page, which IMO is a waste of resources and disables the ability to provide good response pages.
So your ASP mailer logic would be something like this:
- Accept and validate posted info
- If there are errors, output form directly from the script. Don't go back to the initial form, output a "copy" of the form so you can populate any submitted values.
- If no errors, send email.
- Output response page.
The output of the script can contain the verbiage you specify based on what is being input to the form.
So no, especially for the reason you mentioned, Javascript is not really needed here.