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

This is the view

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &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;
<div id="background">
    <div align="center">
        <div id="wrapper">
            <div id="header_area">                
                &lt;?php include_once "include/header.php"; ?&gt;
            <div id="hrz_menu_area">
                <div class="top_header_left">
                <div class="top_header_middle">
                    &lt;?php include_once "include/hrz_menu.php"; ?&gt;
                <div class="top_header_right">
            <div id="quick_link_area">
                <div class="grey_header_left">
                <div class="grey_header_middle">
                <div class="grey_header_right">
            <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>
                <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>
            <div id="footer_area">
                <div class="footer_bg_left">
                <div class="footer_bg_middle">
                    &lt;?php include_once "include/footer.php"; ?&gt;
                <div class="footer_bg_right">

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