Sunday, November 25, 2018

html - how to get form POST value in php

I need how to get form POST value on the same page. Below is my script to try and extract the value as well as the form html:












My Php code:



if (isset($_POST)) {  
$pg_type =$_POST['lamp'];
echo $pg_type;die;
}


I have echo the my variabe it is showing like:





Notice: Undefined index: lamp in C:\xampp\www\htdocs\rentozy\assets\includes\list-header.php on line 20


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...