Re: Formatting input text?

From: Date: Sat, 16 Mar 2002 18:59:25 +0000
Subject: Re: Formatting input text?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-88767@lists.php.net to get a copy of this message
As Oliver says, it is possible in PHP, but then you have to do it, AFTER the form is submitted... Just do some regular expressions on your data before displaying / storing it... Edward ----- Original Message ----- From: "Andre Dubuc" <aajdubuc@webhart.net> To: "Edward van Bilderbeek - Bean IT" <edward@bean-it.nl> Cc: <php-general@lists.php.net> Sent: Saturday, March 16, 2002 7:49 PM Subject: Re: [PHP] Formatting input text? > Hi Edward, > > If I wanted to avoid Javascript, could I still accomplish this in PHP? > > Regards, Andre > > > On Saturday 16 March 2002 13:33, you wrote: > > Just use javascript... (be careful, what works with IE, doesn't > > automatically work with Netscape)... > > > > Greets, > > > > Edward > > > > ----- Original Message ----- > > From: "Andre Dubuc" <aajdubuc@webhart.net> > > To: <php-general@lists.php.net> > > Sent: Saturday, March 16, 2002 4:44 PM > > Subject: [PHP] Formatting input text? > > > > > I wonder whether this is possible? > > > > > > I would like to format a text input so that the first letter of the input > > > > (as > > > > > the user is typing it in) would automatically be converted to Uppercase > > > (capitals). Furthermore, if it is possible, I would like to pre-format > > > the date "input type=text" so that only numbers or dashes could be > > > entered. I really enjoyted this capablity in Paradox PAL language. > > > > > > Does anything exist that would allow me to do this in PHP? > > > > > > An example: > > > > > > Code > > > <td><b>Surname</b></td> > > > <td><input type=text name=rap></td> > > > > > > Screen (and into database) > > > Surname: black >> would be converted as they type to >> Surname: Black > > > > > > Any suggestions or advice would be greatly appreciated. > > > Tia, > > > Andre > > > > > > > > > -- > > > Please pray the Holy Rosary to end the holocaust of abortion. > > > Remember in your prayers the suffering souls in Purgatory. > > > > > > May God bless you abundantly in His love! > > > > > > For a free Cenacle Scriptural Rosary Booklet -- > > > > http://www.webhart.net/csrb/ > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Please pray the Holy Rosary to end the holocaust of abortion. > Remember in your prayers the suffering souls in Purgatory. > > May God bless you abundantly in His love! > > For a free Cenacle Scriptural Rosary Booklet -- http://www.webhart.net/csrb/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#88767) next »