php - How to GET values from Bootstrap Modal form? -
i have used bootstrap modal form , trying values using 'get' method way not working. can tell me how using ajax. if possible without ajax ,that helpfull me.
<div class='modal fade' id='editbuttonmodal' role='dialog'> <div class='modal-dialog'> <div class='modal-content' > <div class='modal-header'> <button type='button' class='close' data-dismiss='modal'>×</button> <h4 style="color:red; text-align:center">my article</h4> </div> <div class='modal-body'> <form role='form_edit' action="addarticle.php" method="get"> <div class="form-group"> <label for="title" >title</label> <input type="text" class="form-control" id="titleid" name='tit' placeholder="enter title of article"> </div> <div class="form-group"> <label for="articlecontent">your thoughts!</label> <textarea class="form-control" rows='10' id="artclecontentid"></textarea> </div> <button type="submit" class="btn btn-default btn-success btn-block" >submit</button> </form> </div> </div> </div> </div>
php file:
echo "hello world" echo $_get['tit']
it error in php file. lost semicolons.
it should be:
echo "hello world"; echo $_get['tit'];
Comments
Post a Comment