我用php
获得了这个输入表单<?php
$name = $d['namescenario'];
if ($name == "Q1"){
echo"<div class='form-group'>
<select class='form-control' id='scenario' name='scenario'>
<option>Q1 First</option>
<option>Q1 Second</option>
<option>Q1 Third</option>
<option>Q1 Fourth</option>
</select>
</div>";
}
else if ($namascen == "Q2") {
echo"<div class='form-group'>
<select class='form-control' id='scenario' name='scenario'>
<option>Q2 First</option>
<option>Q2 Second</option>
<option>Q2 Third</option>
<option>Q2 Fourth</option>
</select>
</div>";
}
else if ($namascen == "Q3") {
echo"<div class='form-group'>
<select class='form-control' id='scenario' name='scenario'>
<option>Q3 First</option>
<option>Q3 Second</option>
<option>Q3 Third</option>
<option>Q3 Fourth</option>
</select>
</div>";
}
else if ($namascen == "Q4") {
echo"<div class='form-group'>
<select class='form-control' id='scenario' name='scenario'>
<option>Q3 First</option>
<option>Q3 Second</option>
<option>Q3 Third</option>
<option>Q3 Fourth</option>
</select>
</div>";
}
}
?>
是否可以获得这样的形式?
这是我的查询
$namescenario= $_POST['scenario'];
$upds=$db->query("UPDATE scenario SET scenario='$keterangan' WHERE noid='$noid' AND project='$project' AND nama_scen='$nama_scen'");