form help

--00163630f073c882f804869f66b6
Content-Type: text/plain; charset=UTF-8

hai
i need to develop a form in which there are two drop down boxes.
depending on the selection of the first drop down box the other box should
be changed..
like that of ajax..
both the boxes get their options from the mysql database..

the code is available at


http://pastebin.com/1cW10VHL



the mysql database is here


http://pastebin.com/5KrkRHku



the code is named as employee.php if it is php extension then it is only
showing till team option and the rest are not showing..

if i change the extension to html then it is showing all the values but my
php code is nt working..

Regards
Chaitanya

--00163630f073c882f804869f66b6--
Chaitanya Yanamadala [ Sa, 15 Mai 2010 12:24 ] [ ID #2041513 ]

Re: form help

--0016364edbe0e03f2d04869ffdab
Content-Type: text/plain; charset=UTF-8

yes i realize that
so this the reason i asked for the ajax..
so can u help me with that

Chaitanya



On Sat, May 15, 2010 at 4:32 PM, lists-php <
replies-lists-b3z1-php [at] listmail.innovate.net> wrote:

> PHP is server-side, so the only way (strictly within php) to get a
> second drop-down to change after a selection has been has been made
> on a first drop-down is to submit the page (back to the server). You
> can do what you're after with javascript/ajax, as you seem to
> realize, but not in a php-only context.
>
> - Richard
>
> ------------ Original Message ------------
> > Date: Saturday, May 15, 2010 03:54:29 PM +0530
> > From: Chaitanya Yanamadala <dr.virus.india [at] gmail.com>
> > To: php-db [at] lists.php.net, bang-phpug [at] yahoogroups.com
> > Subject: [PHP-DB] form help
> >
> > hai
> > i need to develop a form in which there are two drop down boxes.
> > depending on the selection of the first drop down box the other
> > box should be changed..
> > like that of ajax..
> > both the boxes get their options from the mysql database..
> >
> > the code is available at
> >
> >
> > http://pastebin.com/1cW10VHL
> >
> >
> >
> > the mysql database is here
> >
> >
> > http://pastebin.com/5KrkRHku
> >
> >
> >
> > the code is named as employee.php if it is php extension then it
> > is only showing till team option and the rest are not showing..
> >
> > if i change the extension to html then it is showing all the
> > values but my php code is nt working..
> >
> > Regards
> > Chaitanya
>
> ------------ End Original Message ------------
>
>
>

--0016364edbe0e03f2d04869ffdab--
Chaitanya Yanamadala [ Sa, 15 Mai 2010 13:06 ] [ ID #2041514 ]

Re: form help

view the source code of u r page... I guess you'll be surprised..
(provided you have display errors enabled)
the only possible reason i can think of is.. your PHP code is throwing
a fatal error..

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
kranthi [ Sa, 15 Mai 2010 15:36 ] [ ID #2041515 ]

Re: form help

--001636310543a6229d0486c2967c
Content-Type: text/plain; charset=UTF-8

FYKI

On Sat, May 15, 2010 at 7:10 PM, Chaitanya Yanamadala <
dr.virus.india [at] gmail.com> wrote:

> Hai
> 10q dudes i found out wht went wrong, it is with d db class.
>
>
> On 5/15/10, kranthi <kranthi117 [at] gmail.com> wrote:
> > view the source code of u r page... I guess you'll be surprised..
> > (provided you have display errors enabled)
> > the only possible reason i can think of is.. your PHP code is throwing
> > a fatal error..
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> Sent from my mobile device
>
> Chaitanya
>
>

--001636310543a6229d0486c2967c--
Chaitanya Yanamadala [ Mo, 17 Mai 2010 06:23 ] [ ID #2041558 ]
PHP » gmane.comp.php.database » form help

Vorheriges Thema: Help with mysql data sorting using php
Nächstes Thema: Session start