Re: Inserting databasecontent within the same form
| From: | Niel Archer | Date: | Thu, 27 Sep 2007 23:48:00 +0000 |
| Subject: | Re: Inserting databasecontent within the same form | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44078@lists.php.net to get a copy of this message | ||
Hi Ruprecht,
> > SELECT Kunden.*, City.name, City.vorwahl FROM Kunden LEFT JOIN City
> > USING (zipcode)
>
> I'm understanding you this is a way for designing the sql-statement.
Yes.
> My customer want that they have inserted the city after typing in the
> zipcode in the zipfield. The city should be searched in a database and
> inserted in the field city automaticly.
> I think the only way is to do that with some ajax-code combined with a
> short phpscript.
>
> Actually I have these codes, but the automatic inserting fails, I don't
> know why.
<code snipped>
Dynamically changing the fields, I'm afraid I can't help. You would be
better trying a list dedicated to ajax.
--
Niel Archer