|
Posted by Bent Stigsen on 06/09/06 20:30
Craig Morrison wrote:
> Bent Stigsen wrote:
>> Craig Morrison wrote:
[snip]
>>> A form posts the value for D1 to a script, script looks for the value of
>>> D1 and gets it. PHP raises a notice that D1 is undefined.
>>>
>>> I don't understand how I am getting the value that is posted to the
>>> script if the index is undefined.
>>>
>>> Is it really that difficult for someone to explain this?
>>
>> Yes, because in all likelyhood, that is not what is happening.
>>
>> Arrays and forms are so commonly used that, if it was a bug then it would
>> be reported all over the place.
>>
>>
>> /Bent
>
> I didn't say that it was a bug..
>
> I'd yell louder if I thought it was. :-)
Sorry, if what you say is happening, really is happening, then it is a bug,
and since you didn't take Markus seriously, I assumed you did think it was.
> But I am getting the correct value, as you can see from the follow up
> that I posted which does a print_r..
You must be doing something or making assumptions that you consider
unimportant to tell, because it doesn't make sense. Are you sure you are
not seeing the notice *before* submitting the form, or subsequently do a
redirect, or do some fiddling with the _POST-array elsewhere?
/Bent
[Back to original message]
|