get data from db

Hello,
I am a newbe at php.
I am building a form that needs to go back to the database and get a value when a user fills
in a slef.

Here is what I have so far

[php]

<? $today=date('m/d/Y'); ?> Test <body

[/php]

I have built a php file, getStoreAddress.php

Based on w3schools
http://www.w3schools.com/php/php_ajax_database.asp

Which takes in:

[php]

<?php $store=$_GET["store"]; ... ... mysql_close($con); ?>

[/php]

What is the easest/best way to return the values (address, city, state) from getStoreAddress.php
and get them on the main form.

also,
I am not sure what to do with the “test” in lookupStoreAddress

thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service