Re: Re: Regular Expression

From: Date: Tue, 20 Apr 2004 02:07:49 +0000
Subject: Re: Re: Regular Expression
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-33961@lists.php.net to get a copy of this message
andy_amol_2003@yahoo.com (Andy Amol) wrote in news:20040419182502.7596.qmail@web10005.mail.yahoo.com: > 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.

« previous php.db (#33961) next »