Buy Now
Sign in

Configure "onsubmit" to view form data

deons1@iafrica.com , October 09 2007, 18:42
D
deons1@iafrica.com 17
October 09 2007, 18:42 #2669
I need to include a redirect page for the info submitted, please advise on how to include the "need to add" to the "current code"
Thanks for your help.

Current code

<form id="orderForm" name="orderForm" method="post" action="" onsubmit="return verify();">

Need to add:

Dear <?php echo $_POST['name']." ".$_POST['surname']; ?>,

Thankyou for submitting the form. We have received below details from you:

Name:<?php echo $_POST['name']; ?>

Surname:<?php echo $_POST['surname']; ?>

etc...
GreyHead 64
October 09 2007, 19:18 #2670
Hi deons1,

If I understand correctly you want to show this information on a 'Thank you' page after the form is submitted. You can do this with the 'On submit - after sending email' field. See this FAQ for some more info.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
D
deons1@iafrica.com 17
October 09 2007, 19:54 #2672
Dear Bob

You are correct, I would like to make a thank you page with the results of the form data, I'm just not too sure on how the coding needs to be added, please could you give me an example which i could just cut & past & change according to my needs.

Thank you,
Deon
GreyHead 64
October 10 2007, 00:09 #2680
Hi Deon,

Just post your code into the On submit - after sending email field:
Dear <?php echo $_POST['name']." ".$_POST['surname']; ?>,
Thankyou for submitting the form. We have received below details from you:
Name:<?php echo $_POST['name']; ?>
Surname:<?php echo $_POST['surname']; ?>
. . .
and, all being well, it will work for you.

Bob

Post edited by: GreyHead, at: 2007/10/09 20:10<br><br>Post edited by: GreyHead, at: 2007/10/09 20:10
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much