To validate url at server side use this function.
In this function $variable defines the your string which you want to validate.
<?php $reg_exp = /(http?://)?([da-z.-]+).([a-z.]{2,6})([/w ?=.-]*)*/?$/ ereg($reg_exp,$variable); ?> |
To validate url at server side use this function.
In this function $variable defines the your string which you want to validate.
<?php $reg_exp = /(http?://)?([da-z.-]+).([a-z.]{2,6})([/w ?=.-]*)*/?$/ ereg($reg_exp,$variable); ?> |
You must be logged in to post a comment.
It’s really nice. working fine.
this code work in my url validation . i want a variable which can check email validation in php . using ereg function
Hello prabhat,
Thanks . Please check for email validation…….
Extra flab optimized components in all your published
developing. It doesn’t increase the chances of you being displayed.
They likewise have a good content of potassium.
Extra flab optimized components in all your published developing.
It doesn’t increase the chances of you being displayed. They
likewise have a good content of potassium.