Re: How to keep results in other fields, when there's errors ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>




On Feb 6, 2006, at 4:24 PM, Chris wrote:

> Here's the examples:
>
> Form:
> http://www.130605.com/8/
>
> Code:
> http://www.130605.com/8.phps
>
> If any kind soul can let me know how to solve the
> problem that would be great.
>
> Chris.
>
>
>> -----Original Message-----
>> From: php-objects@xxxxxxxxxxxxxxx [mailto:php-
>> objects@xxxxxxxxxxxxxxx] On Behalf Of Chris
>> Sent: Monday, February 06, 2006 9:47 PM
>> To: php-objects@xxxxxxxxxxxxxxx
>> Subject:  How to keep results in
> other fields,
>> when there's errors ?
>>
>> Can anyone show me an example of when using
> error
>> messages in an echo code for certain required
>> fields and there's an error, that the results
> from
>> other, not required fields in drop downs, still
>> stay in the fields please?  At the moment, when
>> clicking send, it shows the errors on the
> required
>> fields, but removes the input in the other drop
>> down fields ;-(
>>
>> Any help appreciated.
>>
>> Chris.
>
>
>
> PHP Data object relational mapping generator
> http://www.metastorage.net/
> Yahoo! Groups Links
>
>
>
>
>
>



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/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux