Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

My question is:
How can i check an url that my guests can insert on my website?

What i want?
I want to trade with likes (Facebook) but everyone are uploading death links.
How can i check that the page are ok? or what is an easy script?

I know the option graphs.facebook.com but i dont know how i can insert it.

Fill in label on my website:
PHP
<tr><td><label for="url">Page URL:</label></td><td width="20"></td><td><input type="text" name="url" id="url" size="40" maxlength="150" value="http://" /></td></tr>


link check on my website (Now):
PHP
 Collapse | Copy Code
if(isset($_POST['add'])){
if(!preg_match("/\bfacebook.com\b/i", $_POST['url'])){$msg = "<div class=\"msg_error\">ERROR: Add your facebook page!</div>";}


How can i add an control to check the pages? i hate death links or private profiles :)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900