You want: > if($status == $selected) echo "selected = ' selected' "; (I didn't bother with \s) And BTW, unless the support person is actually sitting on top of the customer (and I can see situations where that would help), you want it to say "Waiting *for* Customer" Ken On Wed, Aug 31, 2011 at 3:30 AM, <robert@xxxxxxxxxx> wrote: > echo "<option value=\"$status\""; > if($status == $selected) echo ' selected'; > echo ">$status</option>"; > } > } > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php