PHP response form question

I’ve a PHP response form that I’d like an incorrectly filled-out form field result in an error page. How do you designate that form field to run some kind of a query to make sure that a properly formatted email address is filled in by the user?

My current form is returning a ‘success’ page regardless of what’s in that email form field, even when empty.

see:

http://peterpica.com/bht/contact.php


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

Bag that question… I fixed the problem on my end. I’d still like to know how to make a field (other than email) a field that requires some kind of information in in, or otherwise it will generate the error page.


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

In the PHP Feedback Form Action, that’s the only one that’s kinked that way (I think). But if you apply the Form Validation Suite Actions to your form elements, you can validate the form in JavaScript (which doesn’t require a round-trip to the server – the error is shown directly in the page and the form doesn’t submit until it’s filled out correctly). Remember, if someone is trying to get around your validation, all they have to do is turn off JavaScript and the form will submit anyway, though.

If you want to validate the form further in PHP (which is more secure, since it cannot be disabled by the user), you should try using the PHP Feedback Form Action to generate the ‘your-form-name-go.php’ file, then edit that file with a text editor to add your validations. Then remove the Action from your page so you don’t overwrite your custom version of the -go file the next time you publish.

As long as you (manually) set the Page / Form Setup / [Action attribute] to match the filename of your -go file, you can carry on using that hacked version without the Action. You will have to upload that -go file separately, or use the Upload Stuff Action to do that from Freeway.

Walter

On Dec 20, 2011, at 10:43 PM, peterpica wrote:

Bag that question… I fixed the problem on my end. I’d still like to know how to make a field (other than email) a field that requires some kind of information in in, or otherwise it will generate the error page.


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

If you say so, Walt! I think I’ll pass but thanks … I’ll run by a friend of mine where I used to work… she’s into this stuff and will translate what you just told me!

Merry Christmas to you and yours!


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

As Walter suggests - for straightforward validation apply the action from the Validate Form Suite - ActionsForge - The Complete Repository of Freeway Actions

David


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

You guys are OK! Merry Christmas & Happy New Year to you-all.

BTW… Is there anything out there that can link a .xls file to a FWP site?

I know that I can link .xls files to InDesign tables; but was wondering if there’s anything doable by idiots. My friend would like to publish weekly updates to his for-sale inventory without my getting involved. I was going to just publish an Acrobat file on his website and allow him to upload new Acro files weekly himself to keep me out of the loop. But if there’s an easier way…

Regards and thanks again for all of your help this past year.


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

If you’re interested…

http://peterpica.com/bht/forsale.html


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

http://peterpica.com/bht/forsale.html


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

BTW… Is there anything out there that can link a .xls file to a FWP site?

You have to ask the question - Is an Excel file going to be able to be read by everyone? My answer would be that you need Excel, which is a paid for product.

Far better to offer this in a format that can be read free like an Acrobat file.

Is he on a Mac or a PC?

David


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

And BTW - your contact page does not have to end in .php - if you do that then you lose the ability to preview within FW or locally.

Better to keep it as an .html page.

D


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

He’s on a PC… I kinda thought you suggest PDF…much more universal… I may even use a PDF image in the Freeway Pro page file itself, although that would be kinda redundant I guess… I still run into users who can’t read Acro 5 docs!


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

Excel can export a table as HTML. It’s not very good HTML technically-speaking, but it is something that most browsers can deal with. Your client could do that periodically, name it always exactly the same thing, and upload it with an FTP client to the server, overwriting the existing version. You provide a link to that page, maybe using a target:_blank to avoid the problem with the page not having any navigation back to your site, or add a frameset with a navigation pane and a space for the table.

Walter

On Dec 22, 2011, at 11:08 PM, peterpica wrote:

He’s on a PC… I kinda thought you suggest PDF…much more universal… I may even use a PDF image in the Freeway Pro page file itself, although that would be kinda redundant I guess… I still run into users who can’t read Acro 5 docs!


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

<You provide a link to that page, maybe using a target:_blank to avoid the problem with the page not having any navigation back to your site, or add a frameset with a navigation pane and a space for the table.>

Any tutorials/instructions for this available? Sounds like exactly what I’m trying to do.


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

Have a look through the Freeway manual about building a frameset. Basically, it’s a collection of pages, all shown at the same time in the same browser window, and the frameset page itself is just a recipe for how to assemble the pages on screen… You would make the header or sidebar or wherever is appropriate for your page design as a single page in Freeway. On it you would put your site navigation, and you would set all of the links in that navigation area to Target = “_top”. This last part is done in the Inspector. Then you would set the Excel page to load into the other pane of your frameset, using the External tab of the link tool (since you didn’t make this page in Freeway, it counts as an external address). Simply type in the filename. You will need to upload that file to your server separately, just as your client will when updating.

Walter

On Dec 22, 2011, at 11:26 PM, peterpica wrote:

<You provide a link to that page, maybe using a target:_blank to avoid the problem with the page not having any navigation back to your site, or add a frameset with a navigation pane and a space for the table.>

Any tutorials/instructions for this available? Sounds like exactly what I’m trying to do.


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

THANKS Walt… works great! Now 1 more question… Is there any way to get the excel htm file to center on the page? See

http://peterpica.com/bht/4sale.html


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

If the Excel page is always a particular width, then you can fake this by adding two more frames to your frameset. Here’s an ASCII-gram of what it will look like when you’re done:

/ header frame here and here and here
-----------------------------------------------------
|            |                                           |            |
|            |                                           |            |
|     *     |                 600px               |      *    |
|            |                                           |            |
|            |                                           |            |
|            |                                           |            |

You set your middle frame to a defined width, and then you set the two side frames to indeterminate width. This forces them to center the middle frame in the browser window, like springs on each side.

Walter

On Dec 23, 2011, at 10:47 AM, peterpica wrote:

THANKS Walt… works great! Now 1 more question… Is there any way to get the excel htm file to center on the page? See

WebMate - Parked Domain


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

Thanks again Walt. I ended up expanding the columns for a fair optical fill. Don’t have the final copy from my friend yet, so I don’t know how wide the end table will be.

Regards.

http://peterpica.com/bht/inventory.html


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

Walt… is there a trick to setting the indeterminate width? I had to set them to 100 pix (left & right outsides) with inside to 875 to get it to look right.


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

Un-check the size checkbox on both of them, that lets them take up as much room as is left over. Only your middle frame should be set to a particular width (to match your Excel page).

Walter

On Dec 24, 2011, at 9:43 PM, peterpica wrote:

Walt… is there a trick to setting the indeterminate width? I had to set them to 100 pix (left & right outsides) with inside to 875 to get it to look right.


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

no luck… could you send me a screen dump of your settings for the entire frame set as well as the frames? I’m really confused–half the time I’m unable to select a frame within a frame set… email@hidden


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