For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2004 > RE: [PHP-DB] Trigering PHP Code









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] Trigering PHP Code
Bastien Koert

2004-12-29, 8:55 pm

see interspersed comments

bastien

>From: Nayyar Ahmed <nayyares@gmail.com>
>Reply-To: Nayyar Ahmed <nayyares@gmail.com>
>To: php-db@lists.php.net
>Subject: [PHP-DB] Trigering PHP Code
>Date: Wed, 29 Dec 2004 19:43:35 +0500
>
>Hello All,
>I have two problem in my php file i.e.
>
>1. I want to triger some php code, soon after when a selection
>is done from Drop Down Menu,
>For Example:
>When user select country name the State,city menu fill dynamically.


2 ways to do this
1. use javascript and pass all the data down to the client and have js do
the manipulation
2. submit the page and draw the next select box at that time filled with a
db query



>
>2. I want to use a variable value gathered in one php file to some any
>other php file


use sessions

see http://www.php.net/sessions



>
>For Example:
>When user enter his/her name , I will use in later processing in by
>some other php file.
>
>I hope, I have explained my problem:
>
>TIA,
>
>Regards,
>
>--
>Nayyar Ahmad
>
>Lecturer
>Faculty Of Computer Science,
>Institute Of Management Sciences,
>Hayat Abad Peshawar , Pakistan.
>Office : 92-091-9217404 , 9217452
>Cell : 92-0333-9139461
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

Jeffrey Moss

2004-12-29, 8:55 pm

Or, you could use XmlHttpRequest, which is what google suggest uses.

http://www.google.com/webhp?complete=1

You can use this to dynamically populate a section of the page. I wouldn't
delve into it unless you have some xml/javascript experience also though.

Try this page for more info:

http://www.scss.com.au/family/andre...xmlhttprequest/

-Jeff

----- Original Message -----
From: "Bastien Koert" <bastien_k@hotmail.com>
To: <nayyares@gmail.com>; <php-db@lists.php.net>
Sent: Wednesday, December 29, 2004 12:15 PM
Subject: RE: [PHP-DB] Trigering PHP Code


> see interspersed comments
>
> bastien
>
>
> 2 ways to do this
> 1. use javascript and pass all the data down to the client and have js do
> the manipulation
> 2. submit the page and draw the next select box at that time filled with a
> db query
>
>
>
>
> use sessions
>
> see http://www.php.net/sessions
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com