How to Send Form Data via Email
and go to another Page
By Alfred with comments by Paul
Tutorial by compsum
Thanks for the reminder, Marilyn. That approach would have been cumbersome, but I might have tried it anyway!
With the form set to send its data to an email address in the usual way, this onclick action should do the trick:
if (validate_%form%(%form%)) {%form%.submit();location.href='page5.html'}
Alfred
Compsum,
If you edit the form Submit button to change its type from 'Submit' to 'Normal' you can specify an onclick action like this:
location.href='mailto:compsum@yahoo.com';location.href='page5.html';
So long as the browser and email client both play nicely with the 'mailto:' link (which, as I understand it, cannot be guaranteed) the above example will open the user's email client, put "compsum@yahoo.com" in to 'To:' field and go to page 5 in the site.
HTH, Alfred
ALFRED, once again thank you... thank you!! It works perfectly.
When I click on the 'submit' button after I fill out the form it sends the Email to the charity office alerting them of a payment and then goes to the credit card processing site.
Download Compsum’s Tutorial on Dual Use Button
Serif Forum Link Dual Use Button thread
And, Paul added..........
you could also have a single button open 2 or more pages into separate iframes on the same page,
An example would be
<a href="page2.html" target="ifrm_1" onmousedown="parent.frames['ifrm_1'].location='page2.html';parent.frames['ifrm_2'].location='page3.html'; return false;" onClick="return false">TEXT</a>
Paul