formmail.php

Having a problem with formmail.php working on www.alanlowellseminars.com/alsorder.html

Order when submitted returns a host default error page indicating request not available.

I have the form setup method as POST to:

<action=“https://alanlowellseminars.com/cgi-bin/formmail.php” name=alsorder">

and the formmail.php script is located in the cgi-bin on the server.

Can someone review this and give guidance.

Any help is greatly appreciated

Anthony
Orlando FL


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

It’s very rare for PHP files to be in the cgi-bin folder or even need to be. There was a time (mid-90s) when this was common, but it has not been the norm for many years. If you have a file in the cgi-bin folder, it usually needs to have its Unix permissions set so that it is executable (755 or 775). You will need to use an FTP or SFTP application like Transmit to make this change, and your user (login on the server) will need to have sufficient permissions over that file and the cgi-bin folder to allow that change. (Lots of moving parts there.)

Here’s something else I’d like you to try. Using a plain-text editor like TextWrangler (free from http://barebones.com ), create a new file called test.php. In that file, place the following three lines of code, and save it.

<?php
phpinfo();
?>

Upload that file to your Web root folder (alongside your index.html file and whatnot). Then go to yourdomain.com and see what you see. (Substitute your own domain for this example one, naturally.)

If you see a tall page with tons of technical detail, congratulations! Your server is running a normal version of Apache + PHP, and you can use Tim Plumb’s PHP Feedback Form Action in Freeway and get entirely away from the CGI business.

Do delete that test.php file from your server after this test, though, as it contains a lot of detailed information that an attacker could use to compromise your server.

Walter

On Dec 28, 2011, at 9:35 AM, Jay Leyer wrote:

Having a problem with formmail.php working on www.alanlowellseminars.com/alsorder.html

Order when submitted returns a host default error page indicating request not available.

I have the form setup method as POST to:

<action=“https://alanlowellseminars.com/cgi-bin/formmail.php” name=alsorder">

and the formmail.php script is located in the cgi-bin on the server.

Can someone review this and give guidance.

Any help is greatly appreciated

Anthony
Orlando FL


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

Walt,

Thanks for your reply. The test.php worked and shows that I can use the feedback form. I have tried this previously without success. I think I am doing something wrong applying the action.

I have applied the php feedback form action to the table containing the form and placed the resulting html and .php files in the host directory. but I get a not in domain error when I submit the form. Not sure what this is indicating.

Also What content should I have listed in the form setup action under method post?

thanks again for your help.

Anthony
Orlando FL


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

Tim has very complete directions to apply and configure the Action on his site. http://freewayactions.com

I notice you mention that you uploaded (sounded like manually) the page and php files. You should let Freeway upload these for you to avoid any mistakes.

Walter

On Dec 28, 2011, at 10:07 AM, Jay Leyer wrote:

Walt,

Thanks for your reply. The test.php worked and shows that I can use the feedback form. I have tried this previously without success. I think I am doing something wrong applying the action.


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