[Pro] PHPfeedback Form issue

Hello guys,

I’m having some problems with a PHPfeedback form in Freeway 5.4 pro. I created a form in the style of a questionaire, no email address,no name, just questions to be answered. Below is a link to the form page:

http://www.churchoftheredeemerll.org/OngoingReformation/conferencesurvey.html

The problems is when I hit the send/submit button it always goes to the error page and the form is not sent.

I’ve looked through some of the threads and have not found a solution yet. All seems to be in order with the construction of the form-maybe not?. Also, I’ve deleted the action from fwy file and reapplied the action a couple of times, then uploaded to server and still get the same error page.

I’ll appreciate it if Tim, Walter or Delta Dave can take a look and shed some light or solution.

Thank you very much for your invaluable help and knowledge.

regards.


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

Hi Carlos,
I saw a similar situation a while ago and after a bit of searching found a support article identical to this one on your host’s site;
https://my.hostmonster.com/cgi/help/206

Check that the email you have specified in the Action as the from address shares the same domain (the bit after the @ symbol) as the site itself and that the email address is setup and active in the cPanel. If this still doesn’t work try enabling the “Define sendmail_from (Fasthosts)” option in the Action.
Regards,
Tim.

On 20 Jun 2012, at 21:23, Carlos Bobadilla wrote:

I’ll appreciate it if Tim, Walter or Delta Dave can take a look and shed some light or solution.


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

Hi Tim,

Thanks for your response. I read the article and tried to change the php.ini file, however I could not find it anywhere, maybe you can walk me through where to find it.

I opened the go.php file that freeway creates and changed the first line to: ini_set(“sendmail_from”,“email@hidden”); before it had the same email recipient address as in the actions window, then uploaded the go.php to server but nothing change.

Also, I enabled the “sendmail_from (fasthosts)” as you suggested but I still got the same error page.

Do I always have to have a email address or a name field when constructing the form in order for it work properly?

I hope you can help me on this one and again thanks for your help and quick response.

PS: I used different email addresses for testing purposes not the one it should be.


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

Have you set up an error page for each possibility ie not in domain, server failure and invalid email address?

Do that and let us know which error page is displayed.

David


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

Hi Carlos,
There are a couple of things to try;

  1. First of all fire off a quick email to the support people at HostMonster and ask them if they have an example of how you should send emails with PHP on their server. Until they get back to you with a sample we can try option 2
  2. As Dave suggests set an error page for each of the three error types. I suspect you will see the ‘server error’ page when the form is submitted but it is worth checking.

As for setting the ini stuff this is what the FastHosts option does in the Action and sets it in the head of the -go.php file. You shouldn’t need to do it manually as well.

When HostMonster get back to you post their response here and I’ll see what options are available in the Action to help get this up and running on your server.
Regards,
Tim.

On 21 Jun 2012, at 15:26, Carlos Bobadilla wrote:

I opened the go.php file that freeway creates and changed the first line to: ini_set(“sendmail_from”,“email@hidden”); before it had the same email recipient address as in the actions window, then uploaded the go.php to server but nothing change.


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

Hi Tim, David

I hope you guys can direct me on this.
Here is the example from the guys at hostmonster:

MonsterMail

The form mailer requires that you have a basic knowledge of HTML forms. The form mailer has the following options that can be configured for your use.

–sendtoemail - This is the email address that the completed form will be mailed to. (Required)
Example <input type=“hidden” name=“sendtoemail” value=“email@hidden”>

–text - If you set this value to 1 emails will be sent in plain text instead of HTML. (Not required)
Example <input type=“hidden” name=“text” value=“1”>

–redirect - This is the URL that you want the user sent to AFTER submitting the form. (Not required)
Example <input type=“hidden” name=“redirect” value=“http://www.redirect url”>

–subject - Enter what you would like the subject to be, or it will have
the default “Message from MonsterMail”. (Not required)
Example <input type=“hidden” name=“subject” value=“Website information Request”>

–mailfrom - This will make the mail sent to ‘sendtoemail’ be ‘From:’ ‘mailfrom’. (Not required)
Example <input type=“text” name=“mailfrom”>

–file_attachment - This will provide an upload box for a user to attach a file to the email. (Not required)
Example <input type=“file” name=“file_attachment”>

Each of the examples above can be placed into the sample form below.
<form action=“http://www.hostmonster.com/monstermail” enctype=“multipart/form-data” method=“POST”> Name: <input type=“text” name=“Name”><br> Email: <input type=“text” name=“mailfrom”><br> Street Address: <input type=“text” name=“StreetAddress”><br> City: <input type=“text” name=“City”><br> Zip: <input type=“text” name=“Zip”><br> Phone: <input type=“text” name=“Phone”><br> <input type=“hidden” name=“sendtoemail” value=“email@hidden”><br> <input type=“submit” value=“Send Email”> </form>

If you do not specify a REDIRECT page then the default page that the user filling out the form would see would look like the page shown below.

Thank you for completing our form.

The following info was sent to email@hidden:
and shows as from email@hidden (the value of the mailfrom input field)
Field Value
Phone test
StreetAddress test
Zip tteest
City test
mailfrom email@hidden
Name test

Thank you very much for your useful suggestions.

PS: I haven’t tried David’s suggestion for setting a page for each error yet. By the way when setting this one page per error do I have to select the error page from the drop down menu or leave it as is “none”.


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

PS: I haven’t tried David’s suggestion for setting a page for each error yet.

That is one of the first things to do

Choose ‘a page for each error’ and then you will have 3 dropdowns where you can select each error page.

All I do to create different error pages is start with my standard error page, duplicate it, put some big letters across it NID (not in Domain), SE (server error) and EE (email error) so you now have 3 error pages + your original. You can go back to 1 after testing is over.

D


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

The Hostmonster solution bypasses the problem and suggests that you use their own script to process the form.

In your case that may not be a bad idea but doesn’t get to the root of the issue.

So leave your form as it is but remove the PHPFF action from it (the page or the item wherever it is applied)

Instead go to Page>Form Setup

Form action : hostmonster.com/monstermail (the full url as they gave you)

Method : Post

Create a hidden field with the name:sendtoemail and the value of your recipient email address

Create another hidden field with the name : redirect and the value as the url of your success page

And that should be enough - but doesn’t solve the initial problem!

D


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

Hi David,

I tried your suggestion right now and show the SERVER error page.

What would be the next step to follow?

here is a new link to the form if you like to test:

http://www.churchoftheredeemerll.org/Survey Test

Thank you, again.


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

I just did a long explanation on my iPad to advise of the next steps and I see it has not made it to FWT - bu**er!

OK - here it is again.

1 - remove PHPFF action (from the page or the div that you applied it to)

2 - Page>Form Setup. Method: Post Action: http://www.hostmonster.com/monstermail

3 - Create a New hidden field. Name: sendtoemail Value: the email address of your recipient

4 - Create another hidden field. Name: redirect Value: the url of your success page

5 - Create another hidden field. Name: subect Value: survey response (optional)

6 - upload and test

This of course does not solve the problem as to why the PHPFF method doesn’t work - just bypasses it by using Hostmonsters own script!

D


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

OK - should have looked at your new example and I see that you have added an email address field so click on it and in the 3rd Tab in the inspector change the Name from email to mailfrom

D


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

That is so weird - the post I did an hour ago has just appeared AFTER the one I did 5 mins ago!

Follow the one with the numbered list and include the instruction about renaming the email field.

D


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

Hi David,

I followed the steps in your suggestion,however I got a message “does not appear to be a valid email address
Could not get email address, or email address not valid.”

Will this be because I put my email address as recipient for testing purposes? Also, do I have to create a email account on hostmonster so that it recognizes it?

By the way, I had to upload a form with a email field; client’s decision as of now until the issue is solved.

Thanks again for all your effort in solving this.

cheers,

carlos


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

Can you post a link to the page please.

D


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

Hi David,

here is the link:

http://www.churchoftheredeemerll.org/Survey%20Test/survey.html

Please let me know what you find wrong, thanks.

carlos


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

Tim mentioned in a previous post

Check that the email you have specified in the Action as the from address shares the same domain (the bit after the @ symbol) as the site itself

In this case these do not - I think that you will need to use something (at) churchoftheredeemerll.org - set up a new account using Cpanel for testing. I appreciate you are not using the action but it appears to be a Hostmonster specific thing.

BTW - do not use space characters in your file names and folder names - stick to Alphanumerics (A-Z, a-z and 0-1) you can also use _underscores and -hyphens but not any other punctuation.

A web address like http://www.churchoftheredeemerll.org/Survey Test/survey.html can trip up browsers/servers

D


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