php - How do I insert data to mySQL using HTML Select tag? -
i using html , php insert data mysql text field , select tag data select tag inserts zero. missing?
<input type="text" size="30" name="appid" maxlength="8" placeholder="id number..."</> <select name="appamount"> <option value = "1000"> 1000 </option> <option value = "2000"> 2000 </option> </select> <input type="submit" value="submit"/>
$your_name = ($_post["apppname"]); $your_amount = ($_post["appamount"]); { $mysql_qry = "insert sample.details (name, amount) values ('$your_name', '$your_amount')"; if ($conn->query($mysql_qry) === true) { echo "<h1>request received. </p>
Comments
Post a Comment