Practical - 9 IWD
Aim: Information passing using Hidden variables (POST method)
Page–1: Send data using hidden variable
File Name: page1.php
Page–2: Receive hidden variable data
File Name: page2.php
Explanation (for exam):
-
Hidden variable stores data invisibly
-
Data is passed using POST method
-
Accessed using
$_POST[]array
Key Viva Questions
-
What is a hidden variable?
→ A hidden variable stores data in a form but is not visible to the user. -
Which method is used here?
→ POST method -
How do you access form data in PHP?
→ Using$_POSTarray
Comments
Post a Comment