Hi, I’ve just added a .php form to my site. but I only want invited people to use it, so I added a login using the password protected URL. and pointed it to the form page.
My Problem.
When you add the password and submit it. It can’t find the form? I realise it is looking for a .html file and the form is a .php is there a way to do this? Its probably staring me in the face i just cant see it.
Kind regards
Andy
You’re going to have to edit the Action itself – it’s a plain text file, so you need to use a programmer’s text editor like TextWrangler or BBEdit for this. Find the part where it’s conflating the entered “password” with the .html suffix and change that to .php. Then re-publish. The Action is inside the Freeway application bundle, to get to it, Control-click on the Freeway icon, choose Show Package Contents… from the contextual menu, and then burrow into the Contents / SharedSupport / Actions folder, then do the same Show Package Contents bit on the Standard.fwactionb bundle inside there. After a fair bit of digging, you will find the Action, which you can simply edit in place.
Walter
On Feb 21, 2012, at 2:51 PM, Andy wrote:
Hi, I’ve just added a .php form to my site. but I only want invited people to use it, so I added a login using the password protected URL. and pointed it to the form page.
My Problem.
When you add the password and submit it. It can’t find the form? I realise it is looking for a .html file and the form is a .php is there a way to do this? Its probably staring me in the face i just cant see it.
Kind regards
Andy
Does your form page really need to be a .php page? If you’re using the php feedback form action that can be a .html file which will fix your password issue.
David
Sent from my iPad
On 21 Feb 2012, at 19:51, “Andy” email@hidden wrote:
Hi, I’ve just added a .php form to my site. but I only want invited people to use it, so I added a login using the password protected URL. and pointed it to the form page.
My Problem.
When you add the password and submit it. It can’t find the form? I realise it is looking for a .html file and the form is a .php is there a way to do this? Its probably staring me in the face i just cant see it.
Kind regards
Andy
Hi Walt: I’ve had a rake about but can’t seem to find anything that I can change (.html / .php)?
David:Sorry im not that good with forms ive set it up using the .php form action. Not sure how to do it another way? its just so I can get some personal feedback.
If you would like to take a look? www.distinctnortheast.co.uk
Client Login (dnetest) let me know what you think?
Regards to both Andy
On your dnetest page look in the Freeway Inspector palette > in the file name box you will see dnetest.php
Change this to dnetest.html and re-publish
David
Sent from my iPad
On 21 Feb 2012, at 20:27, “Andy” email@hidden wrote:
Hi Walt: I’ve had a rake about but can’t seem to find anything that I can change (.html / .php)?
David:Sorry im not that good with forms ive set it up using the .php form action. Not sure how to do it another way? its just so I can get some personal feedback.
If you would like to take a look? www.distinctnortheast.co.uk
Client Login (dnetest) let me know what you think?
Regards to both Andy
The Softpress tutorial for using the PHP Feedeback Form action incorrectly states that the page file name should have the suffix .php This is NOT the case.
If you do this you lose the ability to preview your page within Freeway or on your Mac.
As David already mentioned keep your contact page with the suffix .html and you will be able to use the action.
Alternatively you could create a sub folder and put your contact page in there called index.html or index.php and use the action to target the Folder - but it is not necessary to go to these lengths.
Hi David, “it did not work” I was just getting the same message cant find file?
Something I have just tried… is the page with the form on it, I have removed the php action. Then added the .php action to the submit button.
Now. when the site is live, you can log in using the password url. you are then taken to the form. fill in the form and click submit. I then get the success page but then when I check the emails it says (the following information has came from …) but the only information in the email is where the details came from and the ip address. No actual info from the form itself?
Im beginning to think ill just post these out using paper and royal mail ;-0
This is a good way to design your form as it keeps all your form items together. In this example the action is applied to the Table - but it could be applied as a page action instead - but not both!
Thanx David I will have a look at this one tomorrow, Its been a long day and Im off to bed, Will keep you posted. Thanks for your help everyone! goodnight