harryuk Posted July 3, 2011 Share Posted July 3, 2011 Hello people!! I am currently designing a E-Commence Website and have come stuck of the admin side. I have designed a form with all the fields i require, I have a drop down menu with different categories i intend to use i.e clothes, shoes, hats etc, Now i am trying to put these categories on the admin side in to the correct categories on the public template side. i.e all clothing to be displayed under'clothing' on index page?? please help? Code i have wrote up. <form action="inventory_edit.php" enctype="multipart/form-data" name="myForm" id="myform" method="post"> <table width="90%" border="0" cellspacing="0" cellpadding="6"> <tr> <td width="20%" align="right">Product Name</td> <td width="80%"><label> <input name="product_name" type="text" id="product_name" size="64" value="<?php echo $product_name; ?>" /> </label></td> </tr> <tr> <td align="right">Product Price</td> <td><label> $ <input name="price" type="text" id="price" size="12" value="<?php echo $price; ?>" /> </label></td> </tr> <tr> <td align="right">Category</td> <td><label> <select name="category" id="category"> <option value="workwear" selected="selected" onclick="">Workwear</option> <option value="footwear">Footwear</option> <option value="safety">Safety</option> <option value="ladders">Ladders</option> </select> </label></td> </tr> <tr> <td align="right">Product Details</td> <td><label> <textarea name="details" id="details" cols="64" rows="5"><?php echo $details; ?></textarea> </label></td> </tr> <tr> <td align="right">Product Image</td> <td><label> <input type="file" name="fileField" id="fileField" /> </label></td> </tr> <tr> <td> </td> <td><label> <input name="thisID" type="hidden" value="<?php echo $targetID; ?>" /> <input type="submit" name="button" id="button" value="Make Changes" /> </label></td> </tr> </table> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/241023-e-commence-help/ Share on other sites More sharing options...
mikesta707 Posted July 3, 2011 Share Posted July 3, 2011 code? Quote Link to comment https://forums.phpfreaks.com/topic/241023-e-commence-help/#findComment-1238000 Share on other sites More sharing options...
harryuk Posted July 3, 2011 Author Share Posted July 3, 2011 Sorry there it is?!? Quote Link to comment https://forums.phpfreaks.com/topic/241023-e-commence-help/#findComment-1238010 Share on other sites More sharing options...
mikesta707 Posted July 3, 2011 Share Posted July 3, 2011 ok firstly when posting code, use the code or PHP BBC tags. Secondly, you need to provide more detail. Just stating you have a problem won' ever get you any help, and posting a small snippet without any explanation as to what is happening and why it is wrong certainly won't either. Now what exactly is happening? Is there an error? Blank page? Something happening that you don't like/want/wasn't intended? If so, what is happening, and how/why is this incorrect? What do you expect to happen. Quote Link to comment https://forums.phpfreaks.com/topic/241023-e-commence-help/#findComment-1238012 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.