Name and Phone # are both named item1. Be sure, whenever you create a
form element, that you check the Output tab of the Inspector. The
Title field on the left-most tab of the Inspector is completely
meaningless to the resulting form. Only the Name field matters to the
server, your form handler, etc.
Having two fields named exactly the same sets you up for one of two
different possible outcomes. Either the second field (in source code
order) overwrites the first, or the two become stacked as an array,
and your form handler must know to deal with that possibility.
You can force the fields to be considered as an array by adding a
square bracket notation to the end of the name, but that’s an
implementation detail best saved for cases where you are writing your
own form handler. You would use that particular notation when you have
checkboxes involved.
Walter
On Oct 19, 2010, at 9:36 AM, Julie Maxwell Allen wrote:
Any suggestions why I am not getting the name and phone #?
Thanks
On Oct 18, 2010, at 8:53 PM, Julie Maxwell Allen wrote:
Evening all.
I have done a contact us page based on one of the templates.
Thank you so much Walter.
Something simple… and something I should have known to check!
Julie
On Oct 19, 2010, at 9:48 AM, Walter Lee Davis wrote:
Name and Phone # are both named item1. Be sure, whenever you create a form element, that you check the Output tab of the Inspector. The Title field on the left-most tab of the Inspector is completely meaningless to the resulting form. Only the Name field matters to the server, your form handler, etc.
Having two fields named exactly the same sets you up for one of two different possible outcomes. Either the second field (in source code order) overwrites the first, or the two become stacked as an array, and your form handler must know to deal with that possibility.
You can force the fields to be considered as an array by adding a square bracket notation to the end of the name, but that’s an implementation detail best saved for cases where you are writing your own form handler. You would use that particular notation when you have checkboxes involved.
Walter
On Oct 19, 2010, at 9:36 AM, Julie Maxwell Allen wrote:
Any suggestions why I am not getting the name and phone #?
Thanks
On Oct 18, 2010, at 8:53 PM, Julie Maxwell Allen wrote:
Evening all.
I have done a contact us page based on one of the templates.