If I understood your requirement correctly:
<form action="abc.php" method="POST">
<select id="dropdown" name="dropdown">
<option <?php if(isset($_POST['dropdown']) && $_POST['dropdown'] == 'A') echo 'selected="selected"';?> value="A">A</option>
<option <?php if(isset($_POST['dropdown']) && $_POST['dropdown'] == 'B') echo 'selected="selected"';?> value="B">B</option>
<option <?php if(isset($_POST['dropdown']) && $_POST['dropdown'] == 'C') echo 'selected="selected"';?> value="C">C</option>
</select>
<input type="submit" />
</form>
PS : You'll also need a name
attribute for the select
tag if you're using PHP to submit the form. Also I'm assuming abc.php
is the same page in which this form is present.