PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// Check for a postcode.
if (eregi ('^[[:alnum:][A-Z]{1,2}\d{1,2} \d[A-Z]{2}}$', stripslashes(trim($_POST['pcode'])))) {
$pc = escape_data($_POST['pcode']);
} else {
$pc = FALSE;
echo '<p><font color="red" size="+1">Please enter your Postcode!</font></p>';
}
im trying to create a postcode validation for a form but its not sumbiting the what have i done wrong can some1 help. many thanks to all u all in advance