Current code snippets
HTML
<form action="" method="post">
<select name="Particulars">
<option value="Username">Username</option>
<option value="Email">Email</option>
<option value="Address">Address</option>
</select>
<input type="submit" name="submit" value="Get Selected Values" />
</form>
PHP
<?php
if(isset($_POST['submit'])){
$selected_val = $_POST['Particulars']; // Storing Selected Value In Variable
echo $selected_val; // Displaying Selected Value
}
So for example, if i select Username, i will want another new text box to come out so I can type in value inside and submit, is there any way I can do it? Currently I am only able to echo out the value, but not a brand new text box. Sorry, english is not my first language, Thank you so much! :)
I will keep updating and showing what I've done here.