Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

need to catch posted value back in dropdown

<select name="ui3" oninput="load_ui('#ui3')" id="ui3" class="form-control" value="<?php echo isset($_POST["ui3"]) ? $_POST["ui3"] : ''; ?>">
    <option value="IEC 60137: 2017">IEC 60137: 2017</option>
    <option value="ANSI / IEEE C57.19.00/01">ANSI / IEEE C57.19.00/01</option>
    <option value="other">Others</option>
</select>

>Solution :

You need to check if post value is equal to dropdown options, like this:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

<select name="ui3" oninput="load_ui('#ui3')" id="ui3" class="form-control">
    <option value="IEC 60137: 2017" <?= isset($_POST["ui3"]) && $_POST["ui3"] == 'IEC 60137: 2017' ? 'selected' : ''; ?>>IEC 60137: 2017</option>
    <option value="ANSI / IEEE C57.19.00/01" <?= isset($_POST["ui3"]) && $_POST["ui3"] == 'ANSI / IEEE C57.19.00/01' ? 'selected' : ''; ?>>ANSI / IEEE C57.19.00/01</option>
    <option value="other" <?= isset($_POST["ui3"]) && $_POST["ui3"] == 'other' ? 'selected' : ''; ?>>Others</option>
</select>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading