Location: PHPKode > projects > PHP Gateway > e-comm/catalog/desc.php
<?
print "<center>";
print "<b><big>Product Wizard</b></big>";
print "<br><b>Description</b><br>On this page, you will specify a short description that will appear in the tables
in which a customer would see when browsing products. You will also write a long description that when the user clicks on the product
name for more information they see that. Finally you will specify the price for this product, and wether or not you wish to charge for shipping. ";

?>
<form action=3.php method=post>
<br><br>Please Specify your <i>Product's name</i>:<br>
<input type=text name=prodname>
<br><br>
Please Specify a <i>Product Code</i>:<br>
<input type=text name=prodcode>
<br><br>
Enter a <i><b>Short</b> description</i>:<br>
<textarea maxlength=255 name="shortdesc" cols=40 rows=4></textarea>
<br><small>IE: Hanes Beefy Tees. These Cotton T-Shirts come in a large<br>
array of sizes and colors. Great for any sport team!</small>

<br><br>

Enter a <i><b>Longer</b> description</i>:<br>
<textarea maxlength=255 name="longdesc" cols=40 rows=4></textarea>
<br><small>IE: Hanes Beefy Tees. These Cotton T-Shirts come in a large<br>
array of sizes and colors. Great for any sport team! You can buy these the <br>
listed colors on this page, as well as a large size range, also listed. <br>
These Tees are made with high quality, durable material that will survive any
<br>type of wear and tear.</small>

<br><br>Choose The sport in which this product is meant for primarily.<br>
<select name=sport>
<?

require("../inf.php");
mysql_connect("$host", "$user", "$pass	");
mysql_select_db("sportplus");
$res = mysql_query("SELECT * from sports");

if($row = mysql_fetch_array($res))
{
	do
	{
		print("<option value='".$row[id]."'>".$row[sport]."</option>");
	}while($row = mysql_fetch_array($res));
}

?>
</select>
<br><br>
<input type=checkbox name=chargeshipping>Charge Shipping

<br><br>

<b><u>C</u>ost:</b><br>
$ <input type=text name=cost size="7" maxlength="7"><br>
<small></small><br>

<b>Price:</b><br>
$ <input type=text name=productprice size="7" maxlength="7"><br>
<small>If there is no remainder for cents. <br>Please add a decimal and two zeros
anyways.</small><br>
<?
print("<input type=hidden name=pricat value=".$_POST[pricat].">");
print("<input type=hidden name=subcat value=".$_POST[subcat].">");
print("<input type=hidden name=brand value=".$_POST[brand].">");
print("<input type=hidden name=full value=".$_POST[full].">");
print("<input type=hidden name=thumb value=".$_POST[thumb].">");
?>
<input type=submit value="Continue">
</form>
Return current item: PHP Gateway