3v4l.org

run code in 300+ PHP versions simultaneously
form.php <!DOCTYPE html> <html> <head> <title>Registration Form</title> </head> <body> <h2>User Registration</h2> <form method="POST" action="form.php"> Name: <input type="text" name="name"><br><br> Email: <input type="email" name="email"><br><br> Phone: <input type="text" name="phone"><br><br> <input type="submit" name="submit" value="Submit"> </form> <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; echo "<h3>Submitted Data</h3>"; echo "Name: ".$name."<br>"; echo "Email: ".$email."<br>"; echo "Phone: ".$phone; } ?> </body> </html>

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
39.27 ms | 728 KiB | 4 Q