Posted by Toby Inkster on 06/11/06 22:39
maya wrote:
> if (email.indexOf('@') != -1) { // etc..
if (strstr(email, '@')!==FALSE)
{
// etc...
}
> also how do you test for length of a string? I tried:
> if (strlen($myName) == 7) {
> but got error...
strlen() is correct. Your error is probably elsewhere.
See:
http://uk2.php.net/manual/en/ref.strings.php
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|