Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 7, 2004, 10:38 pm
rate this thread
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)
Re: muliple form uses
> 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
- » Workflow Management or CRM software recommendations?
- — Previous thread in » HTML Authoring Forum