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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.