Location: PHPKode > scripts > PHP Reciprocial Links > php-reciprocial-links/admin/insertlink.php
<?
include_once("myconnect.php");
if (!get_magic_quotes_gpc()) {
$description=str_replace('$', '\$',addslashes($_REQUEST["description"]));
$title=str_replace('$', '\$',addslashes($_REQUEST["title"]));
$email=str_replace('$', '\$',addslashes($_REQUEST["email"]));
$link=str_replace('$', '\$',addslashes($_REQUEST["link"]));
$reciprocallink=str_replace('$', '\$',addslashes($_REQUEST["reciprocallink"]));
}
else
{
$description=$_REQUEST["description"];
$title=$_REQUEST["title"];
$email=$_REQUEST["email"];
$link=$_REQUEST["link"];
$reciprocallink=$_REQUEST["reciprocallink"];
}

$sql1="insert into reciprocal_links (link,title,email,reciprocallink,cid,description,approved) Values(" .
" '$link',"  .
"'$title',"  .
"'$email',"  .
"'$reciprocallink',"  .
" " . str_replace("'","''",$_POST["cid"]) . ","  .
"'$description',"  .
"'yes')";
mysql_query($sql1 );

header("Location: ". "links.php?msg=" .urlencode("New Link  has been added!") );

?>
Return current item: PHP Reciprocial Links