Display Post Values

Displays all the POST values from the form we submitted at https://pastecode.io/s/pju1b4yc
 avatar
ezeasorekene
php
7 months ago
537 B
19
Indexable
Never
<?php

if(isset($_POST['submit']) && isset($_POST['agdu']) && $_POST['agdu'] == "46577fdghgd"){
    echo $_POST['firstName'];    
    echo "<br>";
    echo $_POST['lastName'];
    echo "<br>";
    echo $_POST['email'];
    echo "<br>";
    echo $_POST['address'];
    echo "<br>";
    echo $_POST['nationality'];
    echo "<br>";
    echo $_POST['middlename'];
    echo "<br>";
    echo $_POST['phone'];
    echo "<br>";
    echo $_POST['age'];
    echo "<br>";
    echo $_POST['agdu'];
} else {
    echo "Please submit the form";
}


?>