Chris wrote: > >>> Are both first_nameIN AND last_nameIN longer than 0 chars? >>> >>> var_dump($_POST['first_nameIN']); >>> var_dump($_POST['last_nameIN']); >>> >>> maybe you only filled in first_name or last_name but not both. >>> >> Well, >> echo $first_nameIN, " ", $last_nameIN; >> Prints out the whole name - without the if clause; and I've tried >> several variations of ifs - none work. >> Maybe there is something I don't understand about 'first_nameIN' and >> $first_nameIN >> but $first_nameIN = $_POST["first_nameIN"]; >> has been declared beforehand. > > Same for $last_nameIN I assume. > > What does var_dump of those 2 variables show? It should be something like > > string(5) "12345" > string 'jeremy' (length=6) string 'basher' (length=6) The problem was the blackets... was missing...I feel stupid again! -- unheralded genius: "A clean desk is the sign of a dull mind. " ------------------------------------------------------------- Phil Jourdan --- pj@xxxxxxxxxxxxx http://www.ptahhotep.com http://www.chiccantine.com/andypantry.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php