i have created a drop down list that has the code no. of a subject. now i want that after a user select a code no the title corresponding to that code no. will automatically displayed in the title field.
How can i do this ?
i think you nean something like this
[PHP]
<form action="<?php echo $PHP_SELF; ?>" >
<select name="test">
<option value="1">test 1</option>
<option value="2">test 2</option>
<option value="3">test 3</option>
<option value="4">test 4</option>
</select><br>
<input type="submit" name="send" value="send">
</form>
<?php
if($_POST['send']){
echo $_POST['test'];
}
?>
[/PHP]
This will display the values of the dropdown.