[PHP] Re: Help on preg_split

2003-03-27 Thread Gudmund Vatn
Jim wrote: Hi! Could someboy please help me with this simple task (at least I though it would be simple): I need to split a string with two dates in into two datestrings, and there might be whatever between the dates, e.g. $datestring = 010101a020202, or $dateting =

[PHP] Re: user permission system (integer to small)

2003-03-27 Thread Gudmund Vatn
Torsten Rosenberger wrote: Hello I have some trouble with user permission. I build the system like the permission in the phplib. admin = 1 news= 2 news_create = 4 news_delete = 8 .. .. .. then ich can check ($user_perm $perm == $perm ) But the problem ist that

[PHP] Re: best way to throw erorrs within a class

2003-03-27 Thread Gudmund Vatn
Dan Rossi wrote: hi guys i have been trying to work out the best way to trigger exception style error handling within a class and return it ,i am currently storing the error code into a session variable, exiting, and doing a header location to the previous page where i was submitting from and

Re: [PHP] Checkbox

2003-03-27 Thread Gudmund Vatn
Tim Burden wrote: Just using the readonly flag in the input tag is the easiest method, I think. - Original Message - From: Reuben D. Budiardja [EMAIL PROTECTED] Newsgroups: php.general To: CPT John W. Holmes [EMAIL PROTECTED]; shaun [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

[PHP] Re: How do i valadate an email address?

2003-03-27 Thread Gudmund Vatn
Philip J. Newman wrote: How would i check that an e-mail has the right parts in it. for example. username @ domain . ext Thanks / Jim Bob Many people just check it like this: if (strpos($emailVar), '@') 0) { echo 'Email is validated'; } else { echo 'Please supply a correct email