ここは自分のコードです。ComboBoxで選択した値を取得し、2番目のComboBoxクエリに使用する方法
私はいくつかのコンボボックスを持っています。 ComboBoxでValueを選択し、別のクエリで値を使用する必要があります。私がオラクルから選択するすべてのデータ。
これは私の最初のComboBoxで、2番目のComboBoxのクエリでこのComboBoxのオプションのVALUEを使用する必要があります。私は2番目のコンボボックスが最初の選択に依存することを意味します。
私はどのように「価値」を得ることができますか?私はonchange="this.form.submit()"
を使用しようとしましたが、ページを更新して選択を失います。たぶん私は新しいPHPファイルを作成し、 "js_post.php" という名前を付け
<tr>
\t <div class="form-group" style="background-color:#f9f9f9;border:1px solid #ddd;border-radius:4px;padding:2px;">
\t <label>Something:</label><span style="color:#FF0000;">*</span></label>
\t
\t \t <select class="form-control" input-sm name="example" required> \t \t \t \t \t \t \t \t \t
\t \t \t \t \t \t \t \t \t \t \t
\t \t \t <OPTION VALUE="">Choose any</OPTION>
\t \t \t \t \t \t \t \t \t \t \t \t
\t \t \t <OPTION VALUE="first">first_name</OPTION>
\t \t \t <OPTION VALUE="second">second_name</OPTION>
\t \t \t \t \t \t \t \t \t \t
\t \t \t </select>
\t </div>
</tr>