FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Associative Array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Associative Array [message #176174 is a reply to message #176173] Tue, 29 November 2011 02:03 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/28/2011 6:26 PM, Doug Miller wrote:
> On 11/28/2011 4:00 PM, Jerry Stuckle wrote:
>> On 11/28/2011 3:42 PM, Doug Miller wrote:
>>> On 11/28/2011 1:57 PM, Jerry Stuckle wrote:
>>>> On 11/28/2011 7:41 AM, Cristiano Larghi wrote:
>>>> > Il Mon, 28 Nov 2011 07:27:16 -0500, Jerry Stuckle ha scritto:
>>>> >
>>>> >> <INPUT id="99_300_prezzo0" name="product_data[0][0][0]"
>>>> >> readOnly="readonly" type="text"> (value for prezzo0)
>>>> >
>>>> > id (and name) *CANNOT* start with a digit ...
>>>> >
>>>> > http://www.w3.org/TR/html4/types.html#type-name
>>>>
>>>> PHP doesn't care...
>>>>
>>> Except to the extent that the HTML error may affect the way the browser
>>> presents the $_POST array to the server. The original post isn't
>>> available to me any more, but IIRC it showed that his $_POST array had
>>> *three* elements where he really wanted only one, e.g.
>>> $_POST ['99']
>>> $_POST ['300']
>>> $_POST ['prezzo0']
>>> where he was expecting to see
>>> $_POST ['99_300_prezzo0']
>>>
>>> ISTM that he may not have had this problem had the HTML code read
>>> <INPUT id="A_99_ ... etc.
>>
>> PHP doesn't care...
>>
> Except to the extent that markup errors [apparently] affect the way the
> $_POST array is presented to the script...

Nope. An id starting with a numeric doesn't affect how values are posted.

But again, PHP doesn't care. It uses the information as presented
(which does NOT include the id= field). If the HTML is bad, that's not
a PHP problem.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Order/Timing of Execution of PHP
Next Topic: Browser doesn't support
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 11:49:10 GMT 2024

Total time taken to generate the page: 0.04834 seconds