Jump to content

Archived

This topic is now archived and is closed to further replies.

Old Novus

quick PHP Array Help please

Recommended Posts

There is either one two many parenthesis or one two few on this line:
<?php if ((!preg_match("/^([A-Za-z0-9])+$/", $username)) { ?>[/code]

BTW, why are you using a Javascript alert in this code? If you are verifying in PHP, use PHP to put out the error message. The Javascript alert will probably not display where you think it will.

Ken

Share this post


Link to post
Share on other sites
Most likely, it's what ken said. Or if it's not, post the code here.

Anyway, the alert will pop, but you shouldn't use it this way ;)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.