you can do Validate::url($websiteUrl);
by the way, preg is quicker than ereg
Mike
Philip J. Newman wrote:
I would like to check if i have a correct url enterend
<?php eregi("^http://[([0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$", $websiteUrl); ?>
--- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED]
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php