Form Action - php or html

–I can vouch for James’ advice…adding php to my freeway pages intereacting with the form caused it to change from non-functioning to working just fine. –

I’ve been using perl but I’m trying to figure out how to use php and going back through old messages, so I’m not duplicating errors.

But I have a clueless, clueless newbie question - how do I change the .html to .php?

Should I be using a separate FTP program to go to the pages on my website and manually changing the .html to .php on the pages where php code resides every time I update? Freeway will presumably helpfully change it back to .html every time I update the site, right?

If the extension needs to be different than the .html that Freeway usually assigns, why isn’t there a checkbox or something to use to indicate that on the form set-up box? Or is there some way to tell Freeway to make the page name end in .php and I am just missing it?


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

I should mention that I’m using Freeway Pro 5.


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

Sometime around 10/1/09 (at 19:08 -0500) Carol Lynn said:

how do I change the .html to .php?

Just go to the Inspector palette and change the file name there.
Freeway will then output tht page with .php instead of .html at the
end of the name. Nice ‘n’ simple, eh?

k


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

Yes, I was just going to come back and say “never mind”

But thank you!


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

  • how do I change the .html to .php?

In this instance you don’t have to.

But if you want to

In the inspector - with nothing on the page selected

Click the first Tab - General Page Settings

The first box has your page title in it Home Page or whatever

The next one down has the file name of your page eg. homepage.html

You can change the html part of the file name to php then hit enter or tab out the box and that is your file name changed.

But please note when using the PHP feedback form action there is NO requirement for your page name to end in .php

The only page that has any php in it is the page that is generated by the action the form-go.php page. All the other pages are standard HTML

David


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

I need php code that will automatically generate and send the same email to four different addresses each time the form is used. I don’t think that is possible with PHP Feedback Form, is it? I only see space for one email address.

I could, I suppose, do it with some email redirect, but I’d rather be able to just put it on the site in Freeway and do it in one pass.

I’ve done it in perl fro some years with no problems, but I’ve found that many isps no longer allow cgi-bin access, so I need to figure out some other way to do it.

I have php code that will do it - I’m still tweaking it, but it sends to multiple addresses if I upload it and run it separately. I just have not yet been able to figure out how to get the code on the page in Freeway where the form lives, or should I put in on some other page in the Freeway document, or should I be uploading the php code page with a regular ftp program and just linking to it?

Any advice appreciate.


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

Have you tried entering your 4 email addresses in the email recipient field of the PHP action using commas to separate them?

David


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

er, no…

told you I was clueless…

Let me try that.


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

Just tried it with 2 and it worked fine.

email1(at)mysite.com, email2(at)mysite.com


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

BTW you cant be clueless if you have managed it in Perl before.


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

But all the directions assume a familiarity that I do not seem to possess.

I still can’t get the form to process even using the PHP Feedback Form action. I have fields named “email” and “name”, also a few other fields, I have an error page and a success page built, I have a submit button, I have valid email address - it generates a regform-go.php page but there does not seem to be anything on there that relates to the fields themselves - and I upload it and test it and I’ve only ever gotten the error page.

Is there something else I have to do to get the individual fields processed? My “form setup” is blank, because the action does it for me, right? Or is there still something I need to put in there.


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

My “form setup” is blank

Yes this is correct - the action does this bit for you.

it generates a regform-go.php page but there does not seem to be anything on there that relates to the fields themselves

How are you looking at this regform-go.php page? With BBedit or similar or your browser?

What you should see starts with this (Opened with BBEdit)


<?php
	$notindomain_errorpage = "error.html";
	$server_errorpage = "error.html";
	$invalidaddress_errorpage = "error.html";
	$successpage = "success.html";
	$recipient="email@hidden";
	$subject="Web site feedback";
	etc.etc.

Have you applied the action to the page or to the div/table that contains your form elements. If the latter then try the former but make sure you don’t have 2 instances of the action on the page.

But most importantly - Post a link to your form page so that we can see the code.

David


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

I’ve now tried it both ways - applied to the page or to the table that holds the form fields. Still no success. The PHP Feedback Form action is currently applied to the table that holds the form fields.

The form is here.

And, yes, I looked at the automatically generated “regform-go.php” using TextWrangler. And yes, it starts the same way as you showed above.

I’m sure I’m missing doing something that will be really obvious in retrospect. Thank you so much for your assistance.


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

Well your form works fine on my server.

So that means it is either the regform-go.php file or the server itself that has the problem.

In the PHP FF action palette change One page for all errors to A page for each error and specify a different page for each of the 3 instances - you dont have to create new pages for the sake of testing just remember which error is supposed to redirect to which page.

Upload and try again the result will tell you where the error is coming from either Not in Domain or Server Error or Invalid Email

Let us know what you find. I am assuming that the server in question has PHP enabled?

David


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

Yes, it is supposed to have php enabled. They tell me it does. And if I upload a php page separately, it processes. So, since I did split it out and it is giving me “Server error,” I guess I will have to contact them.

My contract with them runs out next month. This may be a good time to find this out.


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

I just checked my isp’s site and they are running php 5.1.6. They have a long list of php settings. Is there something else I ought to be concerned with to get this to run?


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

Mark is having a similar problem http://www.freewaytalk.net/thread/view/45234#header

Which also appears to be a Server Error - who is your site hosted with and what package have you got?

David


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

I’ve got the “personal” package at your-site.com.
*Website hosting $2.00 month,free domain parking.

In general, I have very happy with them and I’ve used them for the past seven years or so. Affordable, good tech support, my own cgi-bin, etc.


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

Also, FYI, there is a page that shows all the php settings for your-site here

http://www.your-site.com/info.php

I hope this is helpful in diagnosing the server problem and thank you again!


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