I followed all the instructions for building a feedback form, and all looks well on the screen.
However, when I go to preview, the form page shows nothing but the html code – a full page of html code, and no images.
When I switch back to page, everything looks fine.
What did I do wrong?
Thanks.
You didn’t do anything wrong per se. You are seeing the normal
behavior for Freeway (and WebKit, thus also Safari) when viewing files
that don’t end in .html.
If you are using the PHP Feedback Form Action, then there’s no need to
set the form page filename to someform.php – the Action works fine
with pages that end in .html It writes the form handler separately, so
the page doesn’t need to have any code in it in order to work as
expected.
If however you are using my similarly-named PHP Form Action, then you
do need to change the file extension to .php, and you also have to
write a form handler yourself. Check to be sure which one you’ve
applied.
Walter
On Dec 23, 2010, at 12:09 PM, Kieran McAuliffe wrote:
I followed all the instructions for building a feedback form, and
all looks well on the screen.
However, when I go to preview, the form page shows nothing but the
html code – a full page of html code, and no images.
When I switch back to page, everything looks fine.
What did I do wrong?
Thanks.
Yes - in the recent Screencast on the subject ‘Easy Feedback Forms’ it does WRONGLY state that the page extension should be changed to .php
As Walter has said the form handler (the php part) is created automagically by the action and does have the .php extension.
David
Glad I searched for this as I didn’t change the extension - and left it as HTML and it worked perfectly. A bit confounded by my “mistake” (according to the screencast) I came looking here.
It wouldn’t be so hard to snip that bit out of the screencast - unless either will work and it’s harmless.