Hi,
I am using php >4.1, with Sablotron.
I have both an xml and xsl file, and use sablotron to output html. But the
php expressions inside these files are not evaluated (i.e. left out in the
html-file)
How can they be evaluated for sure?
(most examples use sablotron with php4.0 and
[re-arranging quotes to bottom posting]
In article <9556pp$sna$[EMAIL PROTECTED]>, [EMAIL PROTECTED]
("Jeff Warrington") wrote:
> > hi, im trying to fix this couple of hours but i couldnt find the
> > mistake... can somebody look at it...
> >
> > first i want to check the $co_area for 3 digita
In article <94t6hv$903$[EMAIL PROTECTED]>, "Kumanan"
<[EMAIL PROTECTED]> wrote:
if (eregi("[^0-9]{3}",$co_area)) {
print("area code must be digits");
}
or
if (eregi("[^[:digit:]]{3}",$co_area))
if you use the POSIX regex fields.
> hi, im trying to fix this couple of hours but i couldnt
> if ($co_area != !ereg("([0-9]{3})",$co_area))
> { echo " * Area code must be 3 digital"; }
I don't know anything about ereg and regex, so if there's an error in that
part I won't be able to help with that, but I can tell you that ($something
!= !$something_else) is a double negative, it's like
hi,
im trying to fix this couple of hours but i couldnt find the mistake...
can somebody look at it...
first i want to check the $co_area for 3 digital ... it must contain 3
digital
if ($co_area != !ereg("([0-9]{3})",$co_area))
{ echo " * Area code must be 3 digital"; }
second...
nickname c
5 matches
Mail list logo