first.php sends the selected item to second.php
Code: Select all
<form action='second.php' method="post">
<select name="sltTopic">
<option>A</option>
<option>B</option>
<option>C</option>
</select>
<input type="submit" value="Enter" />
</form>
Code: Select all
<?php
$option = $_POST['sltTopic'];
?>
Code: Select all
<h1>$option</h1>
Also what is this called? I tried searching for an answer but it has been fruitless as I am uncertain of the terminology.
Thanks in advance.