session_start();
I want to send information from one page to another using the session_start();.
Lets say that page1.php has a session above the <!DOCTYPE HTML> doctype.
<?php
session_start();
$_SESSION['mylink'] = $row_mymeeting['congremtid'];
?>
And in my body tag the following shows...
<body>
<a href="page2.php">Here we go</a>
</body>
When I look at page1.php in my browser I get an error
Notice: Undefined variable: row_mymeeting in /Applications/MAMP/htdocs/phptest/www/index.php on line 5
However if I put $_SESSION['mylink'] = "Hello, Welcome to Adobe!"; when I click on the link to the page2.php page it shows.
And on page2.php I want it to echo what ever the $row_mymeeting['congremtid'] has in my databse.
One page 2 I have...
<?php
session_start();
?>
<?php
echo $_SESSION['mylink'];
?>
But I get a blank.
How can I make my $_SESSION['mylink'] = $row_mymeeting['congremtid']; echo in my second page, what am I missing?
Thank you.
Regards,
AdonaiEchad
