By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

muliple form uses

P: n/a
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/
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.