[PHP-WIN] eregi

2004-09-13 Thread George Pitcher
Hi, I'm trying to validate page range data. This can be entered as (example) i-ix,1,23-45. I am trying to ensure that, where the user is pasting data from a web page, for instance, that uses an 'n-dash' rather than a hyphen (but could use something else), that the user is alerted to re-type the

[PHP-WIN] ?eregi?

2002-06-06 Thread Nikolai Jeliazkov
Can anybody help me!!! In my Windows2000 machine I use Apache 3.24 and PHP 4.0.6 and all is OK. But when I transfer my code to work machine (Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_ssl/2.8.5 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6 mod_perl/1.26) the following script returns FALSE. ?php

RE: [PHP-WIN] eregi in an IF statement....

2001-04-18 Thread Asendorf, John
- From: Brad S. Jackson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 5:42 PM To: Asendorf, John Subject: Re: [PHP-WIN] eregi in an IF statement Why do you have two )) at the end of the eregi calls? "Asendorf, John" [EMAIL PROTECTED] wrote: I'm attempt

Re: [PHP-WIN] eregi in an IF statement....

2001-04-18 Thread Yasuo Ohgaki
dorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est -Original Message- From: Brad S. Jackson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 5

[PHP-WIN] eregi in an IF statement....

2001-04-17 Thread Asendorf, John
I'm attempting to fix a little flaw that I have. I have a legacy database which has a mix of 10 and 7 digit phone numbers in it. I first designed the function format_phone with this (under the assumption of 10 digit phone numbers): function format_phone ( $phone ) { $phone = eregi_replace