|
Posted by IchBin on 07/15/06 04:05
David Haynes wrote:
> IchBin wrote:
>> Rik wrote:
>>> IchBin wrote:
>>>> I am cross posting to comp.lang.php and alt.comp.lang.php.
>>>>
>>>> I am having a problem with getting a post from a dropdownlist off a
>>>> html form. While debugging, by instruction steps, for some reason I
>>>> am never get passed the isset($_POST['author_pk']) after selecting an
>>>> item in the dropdownlist.
>>>
>>> ... and after a submit I assume, Peter made a good point ...
>>>
>>> print_r($_POST) and see what it containts.
>>>
>>> Grtz,
>>
>> You guys are right.. Originally I was tying to do this with javascript
>> and wanted to, onClick= event, post the selected field. I am use to
>> java Objects and their events and thought I could add the logic to
>> post the info from from the Dropdownlist and not need and submit button.
>> I am new to php\html objects and javascript. I am a java programmer
>> and learning your area. Some one in another thread mentioned that I
>> could do what I wanted with just PHP. He helped me out tremendously. I
>> am learning hour by hour.
>>
>> I added the submit and all is well.
>>
>> Thanks Guys.
>>
>> IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
>> __________________________________________________________________________
>>
>>
>> 'If there is one, Knowledge is the "Fountain of Youth"'
>> -William E. Taylor, Regular Guy (1952-)
>
> IchBin:
> You don't *have* to have a submit button. You can set the select to
> submit for you. i.e. <select ... onclick="submit()">
>
> Maybe you already knew that but if you didn't it could help in your
> design.
>
> -david-
>
It is my own confusion between html and javascript. When I looked at
tutorials for html the onClick was not documented. When I look at some
Javascript 1.3 docs I saw a detail spec. So my assumption, before you
replied to my first thread message, as that the onClick was a javascript
attribute. Which now does not make sense.
And yes that makes a world of difference in design.
Thanks David
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
[Back to original message]
|