Re: Update fields on same page

From: Date: Wed, 20 Sep 2000 17:47:33 +0000
Subject: Re: Update fields on same page
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2996@lists.php.net to get a copy of this message
Yvonne, The problem here is that altering the html document dynamically is something that happens on the client side, so you're limited to client-side technologies: Javascript, VBscript, Java applets, and Active-X. Of those, the only ones which might potentially offer dbase connectivity are Java applets and Active-X. Frankly, I have no idea where to even start getting that going, and I'm betting the effort isn't worth it. One other potential solution would be to store all the data in the table in some kind of Javascript variables/arrays/whatever. But you'd have to sort out how to organize the data so it's retreivable, and I'm sure the page would become god-awfully slow if you had anything more than a small data set. Add on all the potential compatibility issues you get into with client-side scripting, and I think it's probably a better idea to rethink your approach. A couple possiblities: you could have the page reload with the new data upon selecting something from the dropdown, or you could just make the user select an option from the dropdown before proceeding to the page with the other form fields. Good luck! --- Ed Finkler --- Supervisor of Web Development --- Golden Dome Media --- http://www.goldendome.com --- coj@goldendome.net --- 219.631.1107 p. --- 219.631.1101 f. ----- Original Message ----- From: "Yvonne Rojas" <yrojas@juno.com> To: <php-db@lists.php.net> Sent: Wednesday, September 20, 2000 12:27 PM Subject: [PHP-DB] Update fields on same page > This is a newbie question so please bear with me. > > What is the best way to update text fields that are on the same page as > a drop-down list, when a user selects data from a drop-down list? From > the input of the drop-down list I plan to query a table and populate the > text fields, but I want to do this without having to use a submit button > and going to a different page. > > > Help!

« previous php.db (#2996) next »