php - if that correct post a string from database -
i need help, make little script wrong $_post don't work when call database. code, think there way don't know.
thank edited
<form class="form-horizontal well" action="import.php" method="post" name="upload_excel" enctype="multipart/form-data"> <fieldset> <legend>import csv/excel file</legend> <div class="control-group"> <div class="control-label"> <label>csv/excel file:</label> </div> <div class="controls"> <input type="file" name="file" id="file" class="input-large"> <select class="form-control" name="object"> <option value="1">upload all</option> <option value="2">td onlly</option> </select> <select class="form-control" name="course"> <?php while($un_record = mysql_fetch_array($courquery)) {?> <option value="<?php $un_record[0]; ?>"> <?php echo $un_record[0];?></option> <?php } ?> </select> </div> </div> <div class="control-group"> <div class="controls"> <button type="submit" id="submit" name="import" class="btn btn-primary button-loading" data-loading- text="loading... "value="upload file" >upload</button> </div> </div>
the value="<?php $un_record[0]; ?>
didn't return
if(isset($_post["import"])){ $course=$_post['course']; $object=$_post['object']; }
Comments
Post a Comment