Thank you everyone for your help with my earlier problem, which has been solved and I am now on to more of a general problem with the form. I am using a variable $keyword, and I want the variable to have a predefined start value. How can I set it up so that, the variable is already defined before my query and the script from earlier run. I really wish I had known PHP before starting this project... learning as you go sucks! David PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/