this comes when i try to open the php files. Don't know what happen

here is my code:

function verifyAlphaNum ($teststring) {
    return (eregi ("^([[:alnum:]]| - |\.| |')+$", $teststring));
    }

$valid = verifyAlphaNum ($username)
    if (!$valid){ <<<<<<<<<<<<<< here come the error
        $error_msg[] ="Username must be letters and number";
        }

thx

Recommended Answers

$valid = verifyAlphaNum ($username);

You left a semicolon ; at the end

Jump to Post

All 2 Replies

$valid = verifyAlphaNum ($username);

You left a semicolon ; at the end

wowwwwwwww.... thx for that

a simple mistake :((

GaBack

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.