|
Posted by David Haynes on 07/15/06 02:44
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-
[Back to original message]
|