You are here: Re: Forms and PHP « PHP Programming Language « IT news, forums, messages
Re: Forms and PHP

Posted by universalbitmapper on 10/09/06 14:13

Hugh Janus wrote:
> "Colin Fine" <news@kindness.demon.co.uk> wrote in message
> news:egam40$lfp$3$8302bc10@news.demon.co.uk...
> > Chenky wrote:
> >> Sorry, on second thought you should be able to utilise the database
> >> cache of cities (if that's what you mean) but I have never connected to
> >> a database using javascript and I am unsure if that is possible.
> >>
> >> If not, you'll have to cnnect to the database using PHP (if u don't
> >> know how I can show you) and print the data into an array or variable
> >> of some kind. Then continue with my previous suggestion.
> >>
> >>
> >> Regards,
> >> Josh
> >>
> >
> > Not unless you use AJAX. Javascript is running on the user's machine, and
> > knows nothing of the database.
> >
> > Colin
>
> Hey, do you have any examples I can look at for AJAX and PHP in a dropdown
> list?
>
> Thanks
> BW

There is this kind of hierarchy in web programming:

XHTML->php/mysql -> javascript->DOM->XMLHttpRequest

What you want to do is keep the user on the same page even if he has to
use the third drop list. That means you have to keep the data available
to javascript/DOM/XMLHttpRequest.
AJAX is just a buzzword that encompasses dynamically refreshing pages
techniques.
Google search with these keywords + howto, and get going! :-)

 

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

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