As the title says how am i able to perform that this is what i got:
This is the container :
<select name="entrylevel">
<options> val </option>
And this is how i
<?php $lvl=$_POST['entrylevel']; ?>
<input type="text" readonly="readonly" name="level" value="$lvl">
Currently its just spatting out $lvl at my text element. Would appreciate any help what I’m doing wrong.
First, it your markup is wrong. You should use
<option>not<options>. Next, you shall add value attribute like this<option value="val">any text</option>, so it all should look like this:and the code
or in a bit more clean and corrected fashion:
BTW:
type="text"is default value if not specified, so it could be skipped but keeping it is not a bug anyway.