I managed to fix it by removing an unnecessary | in some of the
regexs. Took me a while to spot but, I changed
(eregi ("^([[:alpha:]]|-|'|)+([[:alpha:]]|[[:space:]]|_|\.|-|'|.)+$"
to
(eregi ("^([[:alpha:]]|-|')+([[:alpha:]]|[[:space:]]|_|\.|-|'|.)+$"
The same regex was repeated throughout the script. It works fine now!
Thanks for your help :) .
Regards,
Nick :)
--- In [email protected], James Keeline <[EMAIL PROTECTED]> wrote:
>
> --- "nickwalsh.rm" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > Thanks for the reply. I have changed all of the $HTTP_POST_VARS
> > [param] for $_POST['param'] and I'm still getting the same errors.
> >
> > Is there anything else I could try?
> >
> > Thanks,
> > Nick
>
>
> I trimmed away most of your code and post so I don't have it here
to consult. However, it should
> be noted that the ereg* functions are POSIX style where the preg*
functions are Perl-Compatable
> Regular Expressions (PCRE). The difference is how you write the
regex. In PCRE you use start and
> stop characters (often the slash /) but in POSIX you don't. Since
the errors were complaining
> about empty expressions, it is possible that this needs to be
checked. Also, be sure you have the
> regex in the proper argument position. The PCRE preg* functions
are faster than the POSIX ones,
> by the way.
>
> James
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/