So I want to use a certain type of form and I need to see what the option chosen is. Right now I just want to echo what is chosen, but I have no idea how. For example, if someone wanted to chose 2 it would echo 2. My form:
<label for="format"><strong>Options</strong></label>
<select id="optionsid" name="optionsname">
<option value="one">1</option>
<option value="two">2</option>
<option value="three">3</option>
</select>
EDIT: So after finding out the action part of the tag, I got almost what I wanted, which was having an action on the same file. I want to show the form in the way that it was picked, for example I almost got it here, but I want to show the options number being 2 instead of the one first in the code if 2 was picked after the submit button is hit. Would anyone know how to do that? Sorry for not specifying earlier. My code now is
<form action="" method="post">
<label for="format"><strong>Options</strong></label>
<select id="optionsid" name="optionsname">
<option value="one">1</option>
<option value="two">2</option>
<option value="three">3</option>
</select>
<button type="submit"> send </button>
</form>
<?php echo $_POST['optionsname'];?>