Have discovered why multiple select no longer works

Welcome Adventurer… Forums Development Development News Have discovered why multiple select no longer works

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1853
    hosted
    Keymaster

    Because pHp is shite and invented for n00bs. Seriously.

    #1854
    hosted
    Keymaster

    This is now fixed after a good few hours dicking around. Seriously, FFS.

    #1855
    Beeblbrox
    Keymaster

    … just in case anybody is interested the issue was that php requires xhtml/html forms to append the two [ ] characters after the multiple select tags name attribute if you desire multiple entries in one select list to be submitted succesfully through the php CGI (common gateway interface) interface to a php array.

    For example (forgive lack of full xhtml tag details):

    <select name=”fruits”>
    <option>Apple</option>
    <option>Banana</option>
    </select>

    Must be defined:

    <select name=”fruits[]”>
    <option>Apple</option>
    <option>Banana</option>
    </select>

    I can’t remember off-hand the full technical details in my current situation however this is not the issue – essentially this is disrespectful of the xhtml specifications as it imposes a proprietary requirement on what is already an extensible specification/language (this is not the only example I’m sure). Strictly speaking I believe if php designers wish a proprietary form of html that suits their specific language requirements then define a subset of xhtml – say xphtml or something – and work from there. And make it clear in introductory php texts.

    And don’t even think about forcing this down a pure html coders throat.

    Otherwise I am mostly impressed with php.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Straight outta Blacksand

Skip to toolbar