List Info

Thread: note 61587 added to function.ereg




note 61587 added to function.ereg
user name
2006-02-07 11:35:50
if anyone needs the code to validate a uk postcode I have
included it below:

// check post code is in correct format
              
if
(!ereg("^[A-Z]{1,2}[0-9]{1,2}[[:space:]][0-9][A-Z]", strtoupper($postcode))) {

    print "You need to enter a valid post
code!<br/><br/>";

}

Hope this helps someone

Chris
----
Server IP: 85.116.0.130
Probable Submitter: 194.129.67.171 (proxied: 1.1 DAKXWI04)
----
Manual Page -- http:/
/www.php.net/manual/en/function.ereg.php
Edit        -- http://master.php.net/manage/user-notes.php?action=
edit+61587
Delete: added to the manual -- htt
p://master.php.net/manage/user-notes.php?action=delete+61587
&report=yes&reason=added+to+the+manual
Delete: bad code            -- http://master.
php.net/manage/user-notes.php?action=delete+61587&report
=yes&reason=bad+code
Delete: spam                -- http://master.php.
net/manage/user-notes.php?action=delete+61587&report=yes
&reason=spam
Delete: useless             -- http://master.p
hp.net/manage/user-notes.php?action=delete+61587&report=
yes&reason=useless
Delete: non-english         -- http://mast
er.php.net/manage/user-notes.php?action=delete+61587&rep
ort=yes&reason=non-english
Delete: already in docs     -- http://
master.php.net/manage/user-notes.php?action=delete+61587&
;report=yes&reason=already+in+docs
Delete: other reasons       -- http://master.php.net/manage/user-
notes.php?action=delete+61587&report=yes
Reject      -- http://master.php.net/manage/user-
notes.php?action=reject+61587&report=yes
Search      -- http://ma
ster.php.net/manage/user-notes.php

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

note 61587 deleted from function.ereg by tularis
user name
2007-05-31 08:22:49
Note Submitter: Hup2.com 

----

if anyone needs the code to validate a uk postcode I have
included it below:

// check post code is in correct format
              
if
(!ereg("^[A-Z]{1,2}[0-9]{1,2}[[:space:]][0-9][A-Z]", strtoupper($postcode))) {

    print "You need to enter a valid post
code!<br/><br/>";

}

Hope this helps someone

Chris

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


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )