Getting Data from form #

submit.php
<?php

    if(isset($_POST['submitForm'])){
        $name = $_POST['pname'];
        $price = $_POST['pprice'];
        $description = $_POST['pdescription'];
        echo "Name : $name <br> Price : $price <br> Description : $description";
    }else{
        echo "no submit";
        // redirect to homepage
    }
    
?>