Forum Moderators: coopster
the problem i have is that i need the php script to submit the global variables after the function (below) without using <form> tags.
can someone help..
<?
$db = mysql_connect("localhost", "user","password");
mysql_select_db("airport",$db);
$cityname = $_POST["sp-q"];
if ($cityname) {
$result = mysql_query("SELECT * FROM tour WHERE IATA LIKE '%$cityname%'",$db);
$myrow = mysql_fetch_array($result);
$Choice = $myrow["Choice"];
$CountryChoice = $myrow["CountryChoice"];
header("location:http://www.example.com/helpme/destination.php");
exit;
} else { printf("Soz"); }
?>
[edited by: jatar_k at 6:15 pm (utc) on Aug. 10, 2004]
[edit reason] examplified [/edit]