I have this code in my script
if (ereg("[^([0-9][a-f]{4})"."."."([^[0-9][a-f]{4})"."."."([^[0-9][a-f]{4})?$", $pmac))
It is checking if the variable $pmac is entered as a valid mac entry meaning xxxx.xxxx.xxxx so when a person enters xxxxxxxxxxxx the script executes the else statement. If its the properway xxxx.xxxx.xxxx the eregs lets it pass.
Dosent seem to work with that line i pasted from my script.
Help.