Menu Send Form HTML 5

I have a bunch of forms in HTML 5. They work well except the values in the Menu. I can choose what ever I want the value is always empty in the sent Mail. Any Ideas?


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

Found it: Names must be everywhere the same.


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

Every field in a form must have a unique (for the form) name. If two fields have the same name, the last one “wins”*. I have a useful tool at Reflector Set your form’s Action to that URL, and submit it (doesn’t matter if you do this from your desktop or from the actual server) and you will see a breakdown of precisely what the server saw in your form submission. This should help you figure out what to name things in your form.

Walter

PS: It is possible to submit multiple values for a single form field name, but in that case, the name must end in a pair of square brackets, like this:

<fieldset>
  <legend>Dessert Toppings</legend>
  <label>
    <input type="checkbox" name="toppings[]" value="sprinkles">
    Sprinkles
  </label>
  <label>
    <input type="checkbox" name="toppings[]" value="fudge">
    Hot Fudge
  </label>
  <label>
    <input type="checkbox" name="toppings[]" value="caramel">
    Caramel Sauce
  </label>
</fieldset>

Now, when you submit that with more than one topping checked, your form handler will get an array of values, not a single value (the last one checked). But that is entirely up to your form handler to figure out, and the generic Freeway-supplied handlers don’t have any logic to handle that, unless I’m mistaken.

On Jan 19, 2015, at 6:15 AM, GTPeter email@hidden wrote:

Found it: Names must be everywhere the same.


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

Great Walter - thank you! This is an excellent tool


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