touched it up a little. including the form this time.
Code:
<?php
if (isset($POST['submit']))
{
include "database.inc.php";
print_r ($POST);
echo "<br /><br />";
$site = $POST['site'];
$link= $POST['link'];
$insert = "INSERT INTO links (site, link)
VALUES ('$site','$link')";
$insert_query = mysql_query ($insert);
if ($insert_query)
{echo "site and link inserted in database. go get another one!! :)"; }
if (!$insert_query)
{echo mysql_error(); }
elseif (!$int_results)
{echo mysql_error(); }
mysql_close ();
}
?>
input show information here: <br />
<form action="#" method="post">
Netowrk
<input type="text" name="site" value="" />
URL
<input type="text" name="link" value="" />
<input type="submit" name="submit" value="submit" />
</form>
<a href="home.php"> home</a>
</body>
</html>