html - I forgot how to capture a post in php -


i trying capture $_post form:

        <?php             var_dump($_post);         ?>         <form class="form-horizontal" action="" method="post">           <div class="form-group">             <div class="col-sm-6">               <input type="text" class="form-control input-lg" id="inputemail3" placeholder="name*">             </div>             <div class="col-sm-6">               <input type="email" class="form-control input-lg" id="inputpassword3" placeholder="email*">             </div>           </div>           <div class="form-group">             <div class="col-sm-6">               <input type="text" class="form-control input-lg" id="inputpassword3" placeholder="position">             </div>             <div class="col-sm-6">               <input type="text" class="form-control input-lg" id="inputpassword3" placeholder="company">             </div>           </div>           <div class="form-group">             <div class="col-sm-12">               <textarea class="form-control input-lg" rows="3" cols="10" placeholder="message"></textarea>             </div>           </div>           <div class="form-group">             <div class="col-sm-offset-6 col-sm-6">               <input type="submit" class="btn btn-default btn-lg btn-custom-sbmit" value="send" />             </div>           </div>         </form> 

and how keep failing because when enter details, , hit submit , array back: array(0) { }.

this 1 of basic things, yet forgot ow it. ideas?

you have no name attributes <input> form elements. result nothing sent server. can verify using firebug or chrome's developer tools see no data sent.

<input type="text" class="form-control input-lg" id="inputemail3" placeholder="name*"> 

should be

<input type="text" class="form-control input-lg" name="inputemail3" placeholder="name*"> 

etc.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -