0

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

Edited by mike_2000_17: Fixed formatting

2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by GaBack
1
$valid = verifyAlphaNum ($username);

You left a semicolon ; at the end

Edited by mahavir123: n/a

0

wowwwwwwww.... thx for that

a simple mistake :((

GaBack

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.