Hi, I am stumped at how to do this:
I have a simple webform that I want the user to enter one value (an address). I then want the form to send those values to a PHP script that processes the address and returns 2 numeric values back to the original webform populating two textboxes in a second form on the orginal page. I have the PHP script working to calculate the values, but I don't know how to send them properly and return the new calculated values and update the two textboxes with the new calcualted values.
I also don't want this main page with the form to have to do a refresh if that is possible.
So something like this in the main form page:
So what is the best method to SEND the address value from the form to the PHP script? And how do I return the two calculated values and have them dynamically update the two textboxes with the results? Thanks for any help!
I have a simple webform that I want the user to enter one value (an address). I then want the form to send those values to a PHP script that processes the address and returns 2 numeric values back to the original webform populating two textboxes in a second form on the orginal page. I have the PHP script working to calculate the values, but I don't know how to send them properly and return the new calculated values and update the two textboxes with the new calcualted values.
I also don't want this main page with the form to have to do a refresh if that is possible.
So something like this in the main form page:
Code:
<form name="address_search" method="$_GET" action="http://............/Geocoder/googlegeoapi.php?"> <input name="HOUSE_NUM" type="text" id="HOUSE_NUM" size="20" > <input type="submit" name="Submit" value="Submit" > </form> <input type="text" name="x_coord" id="x_coord"><br> <input type="text" name="y_coord" id="y_coord"><br> <a href="javascript:doSubmit();">Zoom to this location</a>
Comment