|
|
|
|
![]() ![]() |
Aug 17 2007, 06:47 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 21 Joined: 15-August 07 Member No.: 48,203 |
I'd like to have a postcode (zipcode for you US people) lookup automatically after a person enters a suburb (city) and state into a form. I can handle the mysql query and php code but how do I make the code execute _after_ the user enters the suburb and postcode but before they submit the form?
Is there a way to control when the code executes so the user doesnt' have to submit before the code runs? I'd like them just to enter the suburb and then state and then have the post code enter automatically. Is this possible? Hints appreciated. |
|
|
|
Aug 17 2007, 01:25 PM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,005 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Add a javascript 'onchange' to the selection box? Might be nice to see your code.
|
|
|
|
Sep 11 2007, 07:15 AM
Post
#3
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 128 Joined: 7-September 07 From: Ningbo, China Member No.: 49,552 |
Maybe the AJAX can help you. I think this forum also use AJAX.
|
|
|
|
Sep 12 2007, 09:20 AM
Post
#4
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 190 Joined: 21-October 05 Member No.: 13,185 |
If I'm not mistaken, the shoutbox on the upper part of the board is made from AJAX, is that right?
Would you mind to tell how to use it then? Is it just a JavaScript or any other upgrade from it? |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th September 2008 - 07:35 AM |