PRodgers4284 Posted February 13, 2008 Share Posted February 13, 2008 Im looking to add some validation to a register form for a website address, i have validation for an email adress and i was wondering if i could modifiy it to validate a website address. the code i have the email validation is: else if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)){ $error_stat = 1; //Set the message to tell the user to enter a valid email address $email_message = '*Invalid Email Address*'; } Thanks phil Link to comment https://forums.phpfreaks.com/topic/90962-website-address-form-validation/ Share on other sites More sharing options...
revraz Posted February 13, 2008 Share Posted February 13, 2008 Lots of resources in here http://www.phpfreaks.com/forums/index.php/board,43.0.html Link to comment https://forums.phpfreaks.com/topic/90962-website-address-form-validation/#findComment-466184 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.