Hey. I'm gonna make a forum moderator application where you enter stuff and it will be reviewed by an administrator and eventually be accepted (or not). But i want it to look kinda "pro", and make its own page for it. It will be like a quiz where you enter stuff etc. But how do i make it so if i put a submit button it will send an e-mail with this information, if it is possible at all? Or do i need a kind of bot?
The example below contains an HTML form with two input fields and a submit button: <html> <body> <form action="welcome.php" method="post"> Name: <input type="text" name="fname"> Age: <input type="text" name="age"> <input type="submit"> </form> </body> </html> PHP: When a user fills out the form above and clicks on the submit button, the form data is sent to a PHP file, called "welcome.php": "welcome.php" looks like this: <html> <body> Welcome <?php echo $_POST["fname"]; ?>!<br> You are <?php echo $_POST["age"]; ?> years old. </body> </html> PHP: Output could be something like this: Welcome John! You are 28 years old. PHP: