Re: Re: Regular Expression

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

 



andy_amol_2003@xxxxxxxxx (Andy Amol) wrote in
news:20040419182502.7596.qmail@xxxxxxxxxxxxxxxxxxxxxxx: 

> hi,
>   Thanks for the reply.
> I want to know how to include char "-" i.e a dash . I want to test for
> it. eg: COSC-3006.
> I should be able to test that string as valid.
> Also is there a way in which the form validation fails but when the
> user goes back to the same form its previous values are retained. 
>  
> eg: Suppose the user enters its name, age and phone number.
>      But the phone number is wrongly entered. Then he goes back, the
>      old values should still be displayed. Only the phone number
>      should be cleared. 
>  
> Also how to program for such a back button.
> In what I have done is simply called the previous form, so it clears
> all the values. Any help in appreciated.

Call the previous form but pass it the values as hidden fields. Or better, 
do all the input, validation and etc in the same script, passing the values 
each time.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux