Location: PHPKode > projects > RecipeNet > addn.php
<?php $sitesection="Add A Recipe"; include 'header.php'; include 'common.php';
$rname=$_POST['rname']; 
$rsb=$_POST['rsb']; 
$rcb=$_POST['rcb']; 
$rnuming=$_POST['rnuming']; 
$rnumain=$_POST['rnumain']; 
$rgenre=$_POST['rgenre']; 
$rlevel=$_POST['rlevel']; 
$rtime=$_POST['rtime']; 
$ring=$_POST['ring']; 
$rtxt=$_POST['rtxt'];
$iq="insert into `rn_recipes` ( `id`, `name`, `submit`, `creator`, `numing`, `numain`, `genre`, `level`, `time`, `ing`, `text` ) values (  '',  '$rname',  '$rsb',  '$rcb',  '$rnuming',  '$rnumain',  '$rgenre',  '$rlevel',  '$rtime',  '$ring',  '$rtxt' )";
mysql_connect($dbhost,$dbuser,$dbpass);
@mysql_select_db($db) or die( "Unable to select database");
mysql_query($iq);
mysql_close();
echo 'Your Recipe has been added to our database.  <a href="index.php">Home</a>';
echo '</body></html>'; ?>
Return current item: RecipeNet