|
Posted by Jerry Stuckle on 04/02/06 05:47
Jim Whitaker wrote:
> Please help. What would the code look like to do the following?
> Say you were working with customer and order tables. You are entering a
> new order, and key in the customer id in the orders table. Or even choose
> from a dropdown. Now say you have several other fields about that customer
> that you want filled in from the customer table, ie name, address, phone,
> etc... Once that customerid is entered and a tab key is hit, how do you
> have the other fields looked up and auto filled in in code?
> Please be basic here, I am new to php programming. But the auto fill in is
> wat I am trying to learn. By the way, I'm not looking for a short list type
> of thing, assume the customer table has several thousand records. Ive
> heard of doing thing this with ajax. Ok how? I have no idea how the code
> would look. So far I'm only up to a simple flat file database. I'm trying
> to learn more now. Please see this for a more detailed description of what
> I'm after. http://www.codecomments.com/archive227-2005-9-623448.html
>
>
If you want it to fill in blanks when a tab key is hit, you need a client-side
language such as javascript.
PHP is server-side; the user must submit the forum to the server for PHP to get
the form info.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|