This is how easiForm works, the form is sent to the same page and so any user errors are shown on the same form, then if your form is sent you can select to direct your user to a success page.
You can also create a table of your form elements, another html item with success text, take the code from these items and set them to 2 php variables, then use a ‘flag’ sent by easiForm to show one or the other depending on the form being sent or not.
<?php
if($easiFormFlag===true) {
echo $myFormSuccess;
} else {
echo $myFormTable;
}
?>
As Walter mentions setting your form page to a php page will mean you can’t preview it in Freeway and that is what you will need to do to use easiForm, or at least set it to a php page before you upload it to your server.
This latter method will invlove a small amount of hand coding, otherwise you will have the errors on same form page and another for a success.
For an example this page uses easiForm but redirecting on success, uses the same page for user errors.
http://www.easibase.com/easicontact.php
To use easiForm your hosting will need to be ioncube friendly, most now are.
HTH
On Dec 8, 2012, at 3:23 PM, rakeljuice wrote:
Hello. When I make a contact form, using the PHP Feedback action, I need a page for error and a page for success. Is it possible to give the answers in the same page, without going to a new one?
Answer I mean: your form has been sent ok, or due to a technical proble, try it later
Thanks in advantage.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options