php - HMVC CodeIgniter view igniter type="date" not working on html -


am making form input in hmvc project. want have

input type="date" 

but happens output normal textbox. other ways can or error?

add_view.php

<link rel="stylesheet" href="<?php echo base_url(); ?>assets/bootstrap/css/inputfield.css"> <html> <div>     <fieldset>               <?php                  echo form_open('clients/create');             ?>              <p>                 <label class="field" for=""><span>*</span>name:</label>                 <input type = "text" name="" class ="textbox-300">             </p>             <p>                 <label class="field" for=""><span>*</span>details:</label>                 <textarea name=""></textarea>             </p>         </br></br></br>             <p>                 <label class="field" for=""><span>*</span>address:</label>                 <textarea name=""></textarea>             </p>             <p>                 <label class="field" for=""><span>*</span>contact number:</label>                 <input type = "text" name="" class ="textbox-300">             </p>             <p>                 <label class="field" for=""><span>*</span>contact email:</label>                 <input type = "text" name="" class ="textbox-300">             </p>             <p>                 <label class="field" for=""><span>*</span>date added:</label>                 <input type="date" name="" min="1950-01-01">             </p>               <?php                 echo form_submit('submit','save');                 echo validation_errors();                 echo form_close();             ?>       </fieldset> </div> </html> 

inputfield.css

textarea {     width: 51%;     height: 150px;     padding: 12px 20px;     box-sizing: border-box;     border: 2px black;     border-radius: 4px;     resize: none;     float:right; }  fieldset {     width: 500px; }  label .field{      text-align:left;     width:100px;     float:left;     font-weight: bold; }  input.textbox-300{     width:350;     float:right; }  fieldset p {      clear:both;     padding:5px; }  label span, .required{     color:red;     font-weight: bold; }  .center {     margin: auto;     padding: 10px; } 

im sorry im not in date thing please me

you getting empty textbox result because not using name attribute in input fields add name attribute in input fields as:

example:

<input type = "text" name="yourname" class ="textbox-300"> <textarea name="details"></textarea> <textarea name="address"></textarea> <input type = "text" name="contactno" class ="textbox-300"> <input type = "text" name="email" class ="textbox-300"> <input type="date" name="yourdate" min="1950-01-01"> 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -