How can we register the variables into a Session?
Answer Posted / senthilkumar g
<?
session_start();
$username=$_GET['username'];
$_SESSION['username']=$username;
session_write_close();
?>
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What is scope of variable in php?
Explain how can we execute a php script using command line?
Tell us how can we display the output directly to the browser?
What is the difference between query and inquiry?
Which parts of php are case sensitive?
What are php applications?
How can you tell if a number is even or odd without using any condition or loop?
Which operator is used to combine string values in php?
What is the difference between super () and this ()?
Which functions are used to count the total number of array elements in php?
How a variable is declared in php?
What is an example of a variable?
What are the correct and the most two common way to start and finish a PHP block of code?
What is the use of get and post method in php?
What is difference between array_merge and array_combine in php?