Missed a spot =) > if( $booktitle AND "quantity" ){
I'm not certain if this if statement is accurate. I've never used a statement like this but from the looks of it the AND "quantity" part would always be true (assuming it parses it). This could be adding to your problem as well. I think you were aiming for something like if ($booktitle AND $quantity) { or how I do it (although it looks a bit messier) if (($booktitle) && ($quantity)) { Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php