Ya, with the text input fields they are just the basic stuff. It inserts the names into the database exactly how they are typed.
SO Yes Queen Creek is enterd into the database like that successfully.
Here is an image of my problem.
These are images from the 3 different pages.
As you can see it shows it fine in the drop down as it was enterd.
Here is the URL before i Hit enter to choose the city.
choosecitytoedit.php?country=US&state=Arizona
Here is the URL after i choose the city
editthecity.php?country=US&state=Arizona&city=Queen
So the drop down seems to be working fine, but when it posts the value to the final page that shows there information based on the city, its messing up and not including the space.
Here is my code that inserts the data enterd into the database.
[php]
<?php
} else {
$query = "INSERT INTO user_info (city, first, country, last, email, weather, classifieds, cloud, portal, state, sbd_email, sbd_pass, sbd_user, persphone, phone)". // Add the new user info to the database
"VALUES ('" . $_POST['city'] . "', " .
"'" . $_POST['first'] . "', " .
"'" . $_POST['country'] . "', " .
"'" . $_POST['last'] . "', ".
"'" .$_POST['email'] . "', ".
"'" .$_POST['weather'] . "', ".
"'" .$_POST['classifieds'] . "', ".
"'" .$_POST['cloud'] . "', ".
"'" .$_POST['portal'] . "', ".
"'" .$_POST['state'] . "', ".
"'" .$_POST['sbdemail'] . "', ".
"'" .$_POST['sbdpass'] . "', ".
"'" .$_POST['sbduser'] . "', ".
"'" .$_POST['persphone'] . "', ".
"'" .$_POST['phone'] ."');";
$result = mysql_query($query)
or die(mysql_error());
?>
[/php]
And here is the code for the CITY drop down
[php]
<?php
include "conn.inc.php";
include "upda.php";
?>
<?
$country = $_GET["country"];
$state = $_GET["state"];
$sql="SELECT city FROM user_info WHERE country = '".$country."' AND state='".$state."'";
$result=mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) {
$id=$row["city"];
$thing=$row["city"];
$options.="".$thing.'';
}
?>
<?=$options?>
[/php]