rocky86
08-06-2007, 03:13 AM
Hi I am new here I wanted to know how to get an user input textbox to be send to php? I try alot of method both GET and POST it does not seen to work plss help me!!
My actionscript code:
postalOut.postal=assign.postal.text;
var postalOut:LoadVars = new LoadVars();
postalOut.sendAndLoad(passingurl, postalIn, "POST");
My PHP code:
$postalno=$_POST['postal'];
$resultpostal=mysql_query("SELECT location.uname,location.uid FROM location,districts WHERE districts.districtno ='$postalno' AND
location.lat BETWEEN districts.startlat AND districts.endlat AND location.lng BETWEEN districts.startlng AND districts.endlng");
Then I need to put in the value in my SQL to compare it is my code wrong?
My actionscript code:
postalOut.postal=assign.postal.text;
var postalOut:LoadVars = new LoadVars();
postalOut.sendAndLoad(passingurl, postalIn, "POST");
My PHP code:
$postalno=$_POST['postal'];
$resultpostal=mysql_query("SELECT location.uname,location.uid FROM location,districts WHERE districts.districtno ='$postalno' AND
location.lat BETWEEN districts.startlat AND districts.endlat AND location.lng BETWEEN districts.startlng AND districts.endlng");
Then I need to put in the value in my SQL to compare it is my code wrong?