Many thanks for your help Michael, it's much appreciated. By the looks of things, it's almost complete. As you probably know, emails sometimes mess up the formatting, and I think I may have got something wrong - could you just pass your eye over it please? Form: http://www.130605.com/8/ Code http://www.130605.com/8.phps Chris. > -----Original Message----- > From: php-objects@xxxxxxxxxxxxxxx [mailto:php- > objects@xxxxxxxxxxxxxxx] On Behalf Of Michael Slavin > Sent: Tuesday, February 07, 2006 12:01 AM > To: php-objects@xxxxxxxxxxxxxxx > Subject: Re: How to keep results in other > fields, when there's errors ? > > Change this: > <SELECT style="maintext; float:left" > name="Number_of_people" > onchange="Form1.Number_of_infants.focus()"> > <OPTION selected> </OPTION> > <OPTION>1</OPTION> > <OPTION>2</OPTION><OPTION>3</OPTION> > <OPTION>4</OPTION> <OPTION>5</OPTION> > <OPTION>6</OPTION> > </SELECT> > > to this: > > <SELECT style="maintext; float:left" > name="Number_of_people" > onchange="Form1.Number_of_infants.focus()"> > <OPTION></OPTION> > <OPTION<? if ($Number_of_people == "1") echo " > SELECTED"; ?>>1</OPTION> > <OPTION<? if ($Number_of_people == "2") echo " > SELECTED"; ?>>2</OPTION> > <OPTION<? if ($Number_of_people == "3") echo " > SELECTED"; ?>>3</OPTION> > <OPTION<? if ($Number_of_people == "4") echo " > SELECTED"; ?>>4</OPTION> > <OPTION<? if ($Number_of_people == "5") echo " > SELECTED"; ?>>5</OPTION> > <OPTION<? if ($Number_of_people == "6") echo " > SELECTED"; ?>>6</OPTION> > </SELECT> > 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/