Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<label>Please select the Competition: <select name='opt'>";
- while ($row = mysqli_fetch_array($result)) {
- echo "<option value='" . $row['comp_id'] ."'>" . $row['compname'] ."</option>";
- }
- echo "</select></label>";
- print_r($row['comp_id']);
- ?>
- <input type="text" name="comp_id" placeholder=" (the value from the selected item ">
Add Comment
Please, Sign In to add comment