0

Hi There! Can you please help me with this.
On the first page of my page I created a Textbox named="Student", on the second page I just $_POST its name and the value goes through the textbox and now I wanted to show it Again on the Third box, I used the $_POST method again and an error occured, UNDEFINED VARIABLE!

4
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by mohamedasif18
0

use session variable...

$student=$_POST['student'];							// 
$_SESSION['student']=$student;

calling in the 3rd page

$student=$_SESSION['student'];

should work

Edited by gopi17: n/a

0

Yes it is using session or DB but "Undefined variable " if it is checked by !empty will not show the error.

0

for avoid 'undefined var....' use error_reporting(E_ALL ^ E_NOTICE); on every top of your page,, use session_start(); echo $_session; thats all

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.