Jump to content

quick PHP Array Help please


Old Novus

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

Archived

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

×
×
  • Create New...

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.