Reply to Re: [PHP] onChange js running a php function

Your name:

Reply:


Posted by tg-php on 10/11/05 23:44

First, I want to beat everyone to the punch in yelling at you.. "This is not a PHP question!!! RTFM STFU NOOB" or something stupid like that. hah

But, maybe it seems like it COULD be a PHP question. And it's definitely relevant to PHP development, so how about we give a REAL answer instead of just yelling. :)

Here's what I think..

1. onChange runs a JS function that checks the value of the SELECT that just changed
2. JS function then redirects to the same script but with scriptname.php?select=selectvalue
3. PHP reads the $_GET['select'] selectvalue and performs appropriate DB pull

Voila! (or viola if you're more musical than french)

-TG

= = = Original message = = =

Its been awhile since I tried this so I was wondering if anyone had
any luck with this.

I need to get a list of tables from a database, which means I have to
run a function, I would like to have an onChange event run when I
change my selection in a select menu, that would send the value for
the select menu to a php function.
can that be done?


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация