You are here: Re: [PHP] onChange js running a php function « PHP « IT news, forums, messages
Re: [PHP] onChange js running a php function

Posted by Brent Baisley on 10/11/05 23:57

As someone else mentioned, this isn't really PHP. You could be using
any server side language. It's really a javascript question.

But to answer your question, the functionality you are looking for
has lately been being solved by using AJAX. Search the list archives
for some links to some quick tutorials on how to implement
Asynchronous JAvascript requests. The X in AJAX is XML, but you don't
have to transfer the data using XML, you can use plain text.

On the server side, PHP can't tell that it is getting a request from
a javascript function, so there's really nothing special to do in PHP.


On Oct 11, 2005, at 4:11 PM, Dan McCullough wrote:

> 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?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

 

Navigation:

[Reply to this 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

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