|
Posted by Brian on August 7, 2004, 6:38 pm
Please log in for more thread options
I'm thinking of creating a contact form where the user can either send
their message immediately or preview the message first. So far, I cannot
think of a way to make it happen.
My form mail processing script -- NMS' TFmail -- requires a config file
to be set in the form, normally by a hidden field. I could move that to
the submit "send" button, and have a different config file set in a
submit "preview" button, but there's no way to guarantee that either
button will be pressed.
I could create 2 different scripts, one to send immediately, one to
preview, but there's no way to change the action of form. (Well, I could
use js, but that cannot be relied upon.)
Have I missed something?
--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
|
|
Posted by David Dorward on August 8, 2004, 2:43 am
Please log in for more thread options
Brian wrote:
> I'm thinking of creating a contact form where the user can either send
> their message immediately or preview the message first. So far, I cannot
> think of a way to make it happen.
<input type="submit" name="function" value="Preview">
<input type="submit" name="function" value="Send Message">
Then test the value on the server (and use a sane fall back if neither
control is successful).
> My form mail processing script -- NMS' TFmail
You will probably have to modfiy your script, or submit to a different
script which performs redirection based on the above.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is
|
| Similar Threads | Posted | | one form per row - possible? | August 20, 2004, 1:59 am |
| Form Question | August 10, 2004, 7:01 am |
| November 7, 2004, 8:44 pm |
| form validation | November 28, 2004, 1:14 am |
| Help with Form Action | December 6, 2004, 3:20 pm |
| Form question | December 17, 2004, 3:59 pm |
| Help with a Form page | February 10, 2005, 7:49 am |
| One form and two very different submits? | February 16, 2005, 3:49 pm |
| Web form to Excel | February 25, 2005, 2:47 pm |
| What is wrong with "form" | March 31, 2005, 12:29 pm |
|