ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Configure "onsubmit" to view form data

deons1@iafrica.com 09 Oct, 2007
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 09 Oct, 2007
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
deons1@iafrica.com 09 Oct, 2007
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 10 Oct, 2007
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
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com