Forum Moderators: coopster
if(($_GET['app_city']) == ''){
$cityError = "Invalid or missing city";
$error++; }
else
{
$app_city = trim(stripcslashes($_GET['app_city'])) ;
If I typed City as - "My City",
If the validation fails, it shows City as - "My" instead.
Does not consider both the words.
Can somebody help me here, please?
Thanks
$app_city = trim(stripcslashes($_GET['app_city']));
echo $app_city;
echo $_GET['app_city'];
echo 'City:<input maxLength="35" size="20" name="app_city" value="'.$app_city.'">';