OK, so this might be something, but I seriously cannot find how I went wrong here.
This is my script:
<?php $_POST['submit']; $name = $_POST[$name2]; echo "It is going to database <b>db_".$name."</b>"; ?> <br> </br> <form action='' method='POST'> <input type='hidden' name="Example"> <input type='submit' value='What db is it going to?' name='submit'/> </form>
When the form is submitted, i want the sentence in the echo above to display
"It is going to database db_Example because of the example that the hidden input is named.
Can anyone help me?