[Pro] contact form in an only page

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

Not in the PHPFF Action, no. You could make those other pages look exactly like the form page (minus the form), but they have to exist as separate pages.

What you are looking for, I think, is an example of the Post-Back design pattern. This is when a form posts to itself, and any error handling is done in the form page, thereby leaving all of the posted variables ready to use within the form page, so you don’t need to use the Back button to reload your previous entries.

The PHPFF Action deliberately doesn’t do this, because it would require that your form page be a PHP page, and that kills the preview in Freeway.

Walter

On Dec 8, 2012, at 9:23 AM, 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

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

The reason Im asking for that is not to have an especific contact page. For example, you can ask for an email subscription in a site, from everypage you are, and when the user send the form he doesnt need to be sent to an especific page to be said its ok or not, and he is still in the page he was reading.

I hope I made me understood. Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You could do this with PHP Feedback Form if you put the mini-form in an iframe on the pages where you want it to appear. Make your form page, the error page, and the success page the same (tiny) size as the form page itself. Put a “back” button in the middle of the error page (just a linked graphic or text with the URL javascript:history.go(-1) applied to it. You might also want to look at Wufoo (hosted form service), which allows you to create a form and then inject it into your page with JavaScript.

Walter

On Dec 8, 2012, at 12:16 PM, rakeljuice wrote:

The reason Im asking for that is not to have an especific contact page. For example, you can ask for an email subscription in a site, from everypage you are, and when the user send the form he doesnt need to be sent to an especific page to be said its ok or not, and he is still in the page he was reading.

I hope I made me understood. Thanks


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

You could do this with PHP Feedback Form if you put the mini-form in an iframe on the pages where you want it to appear. Make your form page, the error page, and the success page the same (tiny) size as the form page itself. Put a “back” button in the middle of the error page (just a linked graphic or text with the URL javascript:history.go(-1) applied to it. You might also want to look at Wufoo (hosted form service), which allows you to create a form and then inject it into your page with JavaScript.

Hello, Walter. Thanks for your answer 2 months ago… I couldnt try this before. Sorry, but I dont understand what I need to make. I create the three form pages, but how can I put them as an iframe? And the back button, is it just on the error page, or in the success as well? And, I suposed this is “hidden” isnt it?

Sorry, but didnt understand quite well. Thanks again.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have the i-tek.es/formulario.php built, with the graphic link, but dont know how to insert it in another pages. I just get a blank square…when I try: insert / html markup, and then write <iframe “http://www.i-tek.es/formulario.php”> in it.

Thanks again.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You need a src=“url here” in there somewhere. But use the iframe Action – you’ll get more consistent results. Remember, you won’t see anything but a blank square in Freeway’s design view, and if you preview in Freeway, you’ll see the raw source code. You’ll have to use a browser from a server to see your PHP rendered properly.

Walter

On Feb 5, 2013, at 12:02 PM, rakeljuice wrote:

I have the i-tek.es/formulario.php built, with the graphic link, but dont know how to insert it in another pages. I just get a blank square…when I try: insert / html markup, and then write <iframe “http://www.i-tek.es/formulario.php”> in it.

Thanks again.


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

Thanks a lot!! Silly me, didnt write the src, but didnt know how to insert a iFrame anyway… with the action is working fine. Ive tested the form and it works properly!!

About previwing, I know, I always test from server.

Thanks again!!

PS. When I use the Text field, always happen that they get a different size from the size I set in Freeway. I always need to give the text area a 30% more than I need. Is this normal?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just another thing… what is this for?:

Put a “back” button in the middle of the error page (just a linked graphic or text with the URL javascript:history.go(-1) applied to it.

I have put it but my form is working ok, as its normal way


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Normal in Freeway 5.5 and lower. Freeway 6 makes this much more like the actual size you set in the design view. You can use my FreezeForm Action in 5.5 and lower to do a similar trick (force the size with CSS).

Walter

On Feb 5, 2013, at 1:10 PM, rakeljuice wrote:

PS. When I use the Text field, always happen that they get a different size from the size I set in Freeway. I always need to give the text area a 30% more than I need. Is this normal?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You would put that back button on the error page, just so people can go back to the form without losing their history. In the case of an iframe, it’s up to the browser what to do when you hit “back” in the browser’s location bar. It might refresh the parent page back to its last visited page, not the contents of the iframe.

Walter

On Feb 5, 2013, at 1:17 PM, rakeljuice wrote:

Just another thing… what is this for?:

Put a “back” button in the middle of the error page (just a linked graphic or text with the URL javascript:history.go(-1) applied to it.

I have put it but my form is working ok, as its normal way


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

Thanks for both answers. Freeway 6? I didnt notice its upgraded. Ill have a look.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options