Welcome Guest, Not a member yet? Register   Sign In
Need help with the new form validation
#2

[eluser]Unknown[/eluser]
This is the view

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;link href="&lt;?=base_url();?&gt;public/css/initial.css" rel="stylesheet" type="text/css" /&gt;
&lt;title&gt;Element Admin&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
<div id="background">
    <div align="center">
        <div id="wrapper">
            <div id="header_area">                
                &lt;?php include_once "include/header.php"; ?&gt;
            </div>
            <div id="hrz_menu_area">
                <div class="top_header_left">
                </div>
                <div class="top_header_middle">
                    &lt;?php include_once "include/hrz_menu.php"; ?&gt;
                </div>
                <div class="top_header_right">
                </div>
            </div>
            <div id="quick_link_area">
                <div class="grey_header_left">
                </div>
                <div class="grey_header_middle">
                    &lt;?=$quick_link;?&gt;
                </div>
                <div class="grey_header_right">
                </div>
            </div>
            <div id="content_area" align="left" style="line-height:15px;">
                &lt;?php echo validation_errors(); ?&gt;
                
                &lt;?php echo $error;?&gt;

                &lt;?php echo form_open_multipart('administrator/product/add'); ?&gt;
                
                <h3>Product Category</h3>
                <select name="category">
                <option value="" >Pilih Category</option>
                <option value="Piano" &lt;?php echo set_select('category', 'Piano'); ?&gt; >Piano</option>
                <option value="String" &lt;?php echo set_select('category', 'String'); ?&gt; >String</option>
                <option value="Wind" &lt;?php echo set_select('category', 'Wind'); ?&gt; >Wind</option>
                <option value="Percussion" &lt;?php echo set_select('category', 'three'); ?&gt; >Three</option>
                <option value="Accessories" &lt;?php echo set_select('category', 'Accessories'); ?&gt; >Accessories</option>
                <option value="Others" &lt;?php echo set_select('category', 'Others'); ?&gt; >Others</option>
                </select>
                
                <h3>Product Name</h3>
                &lt;input type="text" name="name" value="&lt;?php echo set_value('name'); ?&gt;" size="50" /&gt;
                
                <h3>Product Description</h3>
                &lt;textarea name="description" cols="" rows="" style="width:50%; height:100px;"&gt;&lt;?php echo set_value('description'); ?&gt;&lt;/textarea&gt;
                
                <h3>Product Image</h3>
                &lt;input type="file" name="userfile" size="50" /&gt;
                
                <div><br />&lt;input type="submit" value="Submit" /&gt;&lt;/div>
                
                &lt;/form&gt;
            </div>
            <div id="footer_area">
                <div class="footer_bg_left">
                </div>
                <div class="footer_bg_middle">
                    &lt;?php include_once "include/footer.php"; ?&gt;
                </div>
                <div class="footer_bg_right">
                </div>
            </div>
        </div>
    </div>
</div>
&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
Need help with the new form validation - by El Forum - 02-20-2009, 09:26 PM
Need help with the new form validation - by El Forum - 02-20-2009, 09:27 PM
Need help with the new form validation - by El Forum - 02-20-2009, 09:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB