# \[Pro\] PHP easiform

**URL:** <https://discourse.softpress.com/t/pro-php-easiform/11089>\
**Category:** Freeway\
**Created:** [June 4, 2011, 6:47am UTC](https://discourse.softpress.com/t/pro-php-easiform/11089 "2011-06-04T06:47:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lesley\_Warren](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Lesley\_Warren](https://discourse.softpress.com/u/Lesley_Warren)\
**Post date:** [June 4, 2011, 6:47am UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/1 "2011-06-04T06:47:51Z")

</div>

More questions to answer please. I am using freeway 5 pro v5.4.2 and i am always getting a error when i try to preview my form in safari, any help will be appreciated. What does this error means.

\<?php // PHP Code placement by PHP easiForm action - www.easibase.com if (phpversion() \>= "4.2.0" && isset($\_POST['f']) && isset($\_POST['submit'])) { $f = $\_POST['f']; $submit = $\_POST['submit']; } $easiFormAction = true; if (file\_exists('easiForm\_config.php')) { include\_once('easiForm\_config.php'); } else { echo "Warning, your form is using a Freeway Action to include 'easiForm' but it appears the 'easiForm\_config.php' script has not been uploaded to the form directory, you will need to upload the 'easiForm\_config.php' file to correct this error."; exit; } \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ freewaytalk mailing list email@hidden Update your subscriptions at: http://freewaytalk.net/person/options

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [June 4, 2011, 8:15am UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/2 "2011-06-04T08:15:43Z")

</div>

Hi Lesley,

You need to set the file ending of the page to .php, it is probably  
set to .html at the moment.

Note: Once you do that you will just see the page code in Freeways  
preview but it will view as it should be on the server.

HTH

On Jun 4, 2011, at 8:47 AM, Lesley Warren wrote:

> More questions to answer please. I am using freeway 5 pro v5.4.2 and  
> i am always getting a error when i try to preview my form in safari,  
> any help will be appreciated. What does this error means.
> 
> \<?php // PHP Code placement by PHP easiForm action - www.easibase.com if (phpversion() \>= "4.2.0" && isset($\_POST['f']) && isset($\_POST['submit'])) { $f = $\_POST['f']; $submit = $\_POST['submit']; } $easiFormAction = true; if (file\_exists('easiForm\_config.php')) { include\_once('easiForm\_config.php'); } else { echo "Warning, your form is using a Freeway Action to include 'easiForm' but it appears the 'easiForm\_config.php' script has not been uploaded to the form directory, you will need to upload the 'easiForm\_config.php' file to correct this error."; exit; } \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ 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](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![Lesley\_Warren](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Lesley\_Warren](https://discourse.softpress.com/u/Lesley_Warren)\
**Post date:** [June 4, 2011, 1:08pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/3 "2011-06-04T13:08:25Z")

</div>

Hello Mike B,

I have the extension set to php and it is still doing the same problem.

* * *

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

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [June 4, 2011, 1:17pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/4 "2011-06-04T13:17:25Z")

</div>

You should check with your hosting company to make sure your hosting  
plan includes php, if the file ending is .php and you still see this  
code it could be because the account does not have php available.

Do you have a URL of the page? you can send it to me directly if you  
do not want to show it here.

HTH

On Jun 4, 2011, at 3:08 PM, Lesley Warren wrote:

> Hello Mike B,
> 
> I have the extension set to php and it is still doing the same  
> problem.
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

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

---

<div class="post-metadata">

**Author:** ![Lesley\_Warren](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Lesley\_Warren](https://discourse.softpress.com/u/Lesley_Warren)\
**Post date:** [June 4, 2011, 1:28pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/5 "2011-06-04T13:28:27Z")

</div>

It is not up on the server yet. I made a sample to make sure that it works. should i stuff-it or zip it and put it in here.

* * *

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

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [June 4, 2011, 1:37pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/6 "2011-06-04T13:37:51Z")

</div>

Lesley,

You do not need to stuff or zip anything, just upload the site to the  
server using Freeway in the normal way, this way you will be sure all  
the files that are needed will be available.  
When you have done that then go to the form pages and you should see  
that the pages are as you expect them to be… without visible php  
code.

PHP pages cannot be read locally on your computer unless you set the  
computer up to do so.

HTH

On Jun 4, 2011, at 3:28 PM, Lesley Warren wrote:

> It is not up on the server yet. I made a sample to make sure that it  
> works. should i stuff-it or zip it and put it in here.
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

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

---

<div class="post-metadata">

**Author:** ![Lesley\_Warren](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Lesley\_Warren](https://discourse.softpress.com/u/Lesley_Warren)\
**Post date:** [June 4, 2011, 2:14pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/7 "2011-06-04T14:14:54Z")

</div>

Thanks mike B,

It worked when i uploaded it to my server. you are great. one question? why does it not preview when i do a preview from my layout. This is the link to my website [http://www.csdesignmtl.com](http://www.csdesignmtl.com)

is it possible to make my site look like  
[http://www.sunshinedoorsspecialists.com/home.html](http://www.sunshinedoorsspecialists.com/home.html)  
moving side to side. I downloaded the action. do i need to upgrade to 5.5 or can i do it in 5.4.2

* * *

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

---

<div class="post-metadata">

**Author:** ![MIKEBR\_FW](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@MIKEBR\_FW](https://discourse.softpress.com/u/MIKEBR_FW)\
**Post date:** [June 4, 2011, 2:33pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/8 "2011-06-04T14:33:04Z")

</div>

Php file ending files cannot be previewed within Freeway.

You could probably use the scriptaculous for the sliding affect of the  
referenced page:  
[http://www.softpress.com/products/greatfeatures/scriptaculous/](http://www.softpress.com/products/greatfeatures/scriptaculous/)

BTW:

1. You need to name the form element items correctly, yours are all  
names ‘item1,item2 etc’. Select the form element items such as text  
fields etc. then put ‘name’ as the ‘Name’ of that element. Do the same  
for email and the other element items as none of them actually have a  
releative name.

2. You seem to mixing two different form actions on the same form, if  
you want to use the Form Feedback action then remove all the easiForm  
actions or vice versa. You should not try and use two processes for  
sendng your forms, it needs to be one or the other. If using Form  
Feedback action you do not need to name the form file as a .php page.

HTH

On Jun 4, 2011, at 4:14 PM, Lesley Warren wrote:

> Thanks mike B,
> 
> It worked when i uploaded it to my server. you are great. one  
> question? why does it not preview when i do a preview from my  
> layout. This is the link to my website [http://www.csdesignmtl.com](http://www.csdesignmtl.com)
> 
> is it possible to make my site look like  
> [http://www.sunshinedoorsspecialists.com/home.html](http://www.sunshinedoorsspecialists.com/home.html)  
> moving side to side. I downloaded the action. do i need to upgrade  
> to 5.5 or can i do it in 5.4.2
> 
> * * *
> 
> freewaytalk mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

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

---

<div class="post-metadata">

**Author:** ![Frank\_H2](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/f/eb8c5e/32.png) [@Frank\_H2](https://discourse.softpress.com/u/Frank_H2)\
**Post date:** [June 4, 2011, 5:02pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/9 "2011-06-04T17:02:00Z")

</div>

Hi all,  
The below effect (on Softpress page) doesn’t appear in my Google Chrome 10.0.696.71 browser. I found that turning Ad Block extension v. 2.4.9 off allows it, but I have never notice this before.

My concern is that as Ad Block is a fairly popular extension,  
a page viewer may never know there is content (NOT ads) being blocked or why. Again, I have never noticed this before, and my browser settings have not been changed recently.

Can show / hide action be modified to avoid this? I guess a gif box below the animation stating one is there might alert a viewer to missing legitimate content?

I also use FlashControl 2.2.0 but this extension allows me the option to turn on or off a Flash presentation, and has no affect on the animation. Perhaps the Ad Block developers need to be contacted…

Comments?

Frank

On Jun 4, 2011, at 7:33 AM, Mike B wrote:

Php file ending files cannot be previewed within Freeway.

You could probably use the scriptaculous for the sliding affect of the referenced page:  
[http://www.softpress.com/products/greatfeatures/scriptaculous/](http://www.softpress.com/products/greatfeatures/scriptaculous/)

* * *

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

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [June 4, 2011, 5:25pm UTC](https://discourse.softpress.com/t/pro-php-easiform/11089/10 "2011-06-04T17:25:58Z")

</div>

> downloaded the action. do i need to upgrade to 5.5 or can i do it in 5.4.2

Not sure which action you downloaded but I think that site uses Walter’s Carousel action which is part of Protaculous - [http://www.actionsforge.com/projects/view/11-protaculous](http://www.actionsforge.com/projects/view/11-protaculous) which works fine in 5.4.2

But you should update to FW 5.4.3 which addresses some bug fixes.

And to clarify - pages that contain php code (end in .php) require processing by software on the server which is not part of a standard install in Mac OSX - that is why you cannot preview except after uploading.

If you are using Tim’s PHP Feedback Form action then your page does NOT require the .php suffix and if you make it .html you will be able to preview it on your Mac.

The reason for this is that the PHPFF action creates the php code in a separate file which is uploaded to the server for you and is only used when the submit button is pressed.

Visit [http://www.freewayactions.com/product.php?id=019](http://www.freewayactions.com/product.php?id=019) for instructions and notes on correct naming of the form elements.

David

* * *

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