[Express] php check box question

Hi!

I set up a php form which includes two checkboxes. They work just fine.

However when I tried to change their name from item6 to something that would be clearer the form would not work - the form fails to submit.

They are:

item6 is the workshop button
item24 is the Arizona button

I changed the names in various combinations on both the first inspector screen when clicking on box (the window with the checkbox icon at the top) and on the third screen (with the icon that looks like a window). i.e., changing the name on the third screen but not the first, then the first screen but not the third, etc.

In other words, when I leave the name as named item6 the form works great.

Thanks in advance for any suggestions.

Mark

http://www.pantherpeakbindery.com/form.php


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

Oops, I checked the wrong box! I’m using Pro, not Express.


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

The only one that matters here is the third tab in the Inspector. You don’t need to change both the Title and Name to match, but you do need to change the Name (in the third tab) to a “legal” name. A form element should be named following the rules for an HTML ID (or a PHP variable):

  • No spaces or any punctuation besides an underscore
  • Must begin with a letter
  • Should be unique on the page (if there are any duplicates – the last one will “win”)

If you follow those rules, it should work. You need to change more than just the checkboxes, though. Particularly Name and Email have to be named (in the third tab, in the Name field) PRECISELY name and email (without quotes, if you’re looking at this in Mail). Without at least that step, I would be very surprised if your form worked at all with PHP Feedback Form.

Walter

On Jun 28, 2012, at 4:41 PM, Mark wrote:

Hi!

I set up a php form which includes two checkboxes. They work just fine.

However when I tried to change their name from item6 to something that would be clearer the form would not work - the form fails to submit.

They are:

item6 is the workshop button
item24 is the Arizona button

I changed the names in various combinations on both the first inspector screen when clicking on box (the window with the checkbox icon at the top) and on the third screen (with the icon that looks like a window). i.e., changing the name on the third screen but not the first, then the first screen but not the third, etc.

In other words, when I leave the name as named item6 the form works great.

Thanks in advance for any suggestions.

Mark

http://www.pantherpeakbindery.com/form.php


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

That did it!

Thanks, Walt!


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

Another couple of things to note

1 You do NOT have to suffix your form page .php A standard .html is absolutely fine and will allow you to preview it locally (on your Mac)

2 Your background vellum.jpg image is HUGE at over 1/2Mb and slow to load. You could easily reduce this to sub 100K without any noticeable loss of quality - it is a background image after all.

3 It is a good idea to use a Table structure to keep your form elements together. Try increasing the text size in your Browser and see what happens to your layout (Under the View menu in Safari select Zoom Text Only and Cmd+ a couple of times)

Example of table structure at http://www.deltadesign.co/formtest.html

David


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

Thank you David. I’ll do that.

Is there a way to run the vellum jpeg through iPhoto and reduce its size?

And I’ll read up on tables in the Reference book and see how it’s done. I was kind of wondering what tables are for!

Really, thanks to both of you for your help.

Mark


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

David,

A bit premature to ask, perhaps.

But you’re saying, I’m guessing, that I should create a table with two columns. The left column would be for the descriptors (name, email, etc.) and the right column would be for the text box, drop down box, etc.

Is this the direction I should start towards?

Thanks again,

Mark


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

I should create a table with two columns. The left column would be for the descriptors (name, email, etc.) and the right column would be for the text box, drop down box, etc.

Precisely

As to your vellum image - open it with Preview. File>Save As and in the the resulting dialogue box down the bottom you will see the Format selector, Quality slider and below that the estimated output file size.

Try reducing the quality and save (remember that you are doing a Save As so you will still have the original if you need to start again).

Now open your new file with your browser and see how it looks - can you shave a few more K off? - if so do it again.

D


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

Great! Thanks for your help.

Now on to figuring out tables!

m


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

Nothing to figure out

Work out how many columns (2) and rows (1 for each field + 1 for submit) you need and ‘draw’ a table on your page using the table tool.

Copy your existing fields (actually Cut would be better) and paste them into the appropriate cell.

Remove borders etc. from the table.

Apply the action to the table itself and you are done.

What’s more using this method you now have a complete form that you can copy/paste from 1 FW doc (or page) to another with only minor alts.

D


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

So, I got my form set up as a table. Easy, as you said! It was actually easier than the other way, because the elements all lined up automatically.

I also was able to reduce the size of my background image down to a more manageable size.

Thanks again for your suggestions. I really appreciated them.

m


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