How To Check Valid or Invalid URL:PHP

<?php

if(isset($_POST[‘check’]))
{

$web= test_input($_POST[“web”]);
if(!preg_match(“/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i”,$web))
{

$Err = “Invalid URL”;
}
else
{
echo “valid URL”;
}
}

?>

<html>
<body>
<form method=”post” action=””>
<table>
<tr>
<td>Enter URL</td>
<td><input type=”text” name=”web”/></td>
</tr>
<tr>
<td><input type=”submit” name=”check” value=”check url”/></td>
</tr>
</table>
</form>
</body>
</html>

SynapseIndia claim top notch services in the field of IT sectors within tight deadlines.Employee at SynapseIndia never gets complaints from clients for deadlines, So, it is one of the trusted offshore software development company, that is easily completed the projects with a minimum span of time. IT Mentor & an Entrepreneur SynapseIndia CEO Shamit Khemka is responsible to make this organization robust and reliable.You can check feedback and reviews given by clients on various projects completed by us.

The Employment Bond is basically an agreement which the company and the employee enter into which among the other terms contained therein states that in consideration of the training given to the Employee and the money spent by the company in imparting such training, the Employee will remain in the services of the company for a particular period.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s