else if($Key == "Website" || $Key == "Destination" || $Key == "Source") { if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#\/%=~_|]/i", $Data[$Key])) { $Error[$Key] = "Invalid URL."; $Return = 1; } }
<input type="hidden" value="GetAffiliatelink.php" name="Destination"/> <input type="hidden" value="ProductAffiliate.php#Promote%20School%20Pedestal" name="Source"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)