Location: PHPKode > projects > Kwik Kart > addp.php
<?php
$Page=$_GET['Page'];
$Ip=$_SERVER['REMOTE_ADDR'];

if ($_COOKIE['kkPsave']!=$Ip){echo " <meta http-equiv=\"REFRESH\" content=\"0;url=login.php\"> ";
                              Exit;}
?>

<head>
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>

<body>
<center>
<h3><strong>Add New Product</strong></h3>
</center>
<p>
<hr>
<p>

<form action="takeupload.php" method="post" enctype="multipart/form-data">
<table width="650" align="center">
<tr><td><strong>Item Name</strong></td><td><input type="input" Name="Name" size="50"><td></tr>
<tr><td><strong>Category</td><td><select name="Cat">
<?php

include ('connect.php');

$result = mysql_query("SELECT * FROM gsettings" ) 
or die(mysql_error());  
$row = mysql_fetch_array( $result );
$CSB=$row['csymb'];

$result = mysql_query("SELECT * FROM categorys ORDER BY Cat ASC"); 

while($row = mysql_fetch_array( $result )) {
	$Category=$row['Cat'];
	echo "<option>$Category</option>";
					}
?>
</select></td></tr>
<tr><td valign="top"><strong>Item Description:</strong></td><td><textarea name="Description" cols="50" rows="4"></textarea><td></tr>
<script type="text/javascript">
				CKEDITOR.replace( 'Description' );
			</script>

<tr><td><strong>Picture 1</strong></td><td><input name="file[]" type="file" /></td></tr>
<tr><td><strong>Picture 2</strong></td><td><input name="file[]" type="file" /></td></tr>
<tr><td><strong>Picture 3</strong></td><td><input name="file[]" type="file" /></td></tr>

<tr><td><strong>Stock</strong></td><td><input type="input" name="Stock" size="4"></td></tr>

<tr><td><strong>Price</strong></td><td><?php echo $CSB; ?><input type="input" name="Price" size="6"></td></tr>

<tr><td valign="top"><strong>Flat Shipping</strong></td><td><?php echo $CSB; ?><input type="input" name="Ship" size="6"><br>
                                                <font size="2" color="#ee0000">Not needed if using calculated shipping.
                                                                                </font></td></tr>
<tr><td valign="top"><strong>Product Weight</strong></td><td><input type="input" name="Weight" size="6"><br>
                                                <font size="2" color="#ee0000">Not needed if using flat shipping.<br>
                                                                              </font></td></tr>                                                                                
                                                                                
<tr><td colspan="2"><center><input type="submit" value="Save and add new product."></center></td><tr>
</table>
</form>






</body>
Return current item: Kwik Kart