php - Can't set url value for $_GET when linking to another page via <a> tag -


i have login page starts session, sets email , session_id value in loggedin database table. when login successful, goes

dashboard.php?sesid="session_id" 

now when on dashboard page, set $userid session id url value.

i have link:

<a href="?sesid=".$userid."">dashboard</a> 

but when click on it, url says

dashboard.php?sesid= 

why id not popping up?

your link should this:

<a href="?sesid='<?php echo $userid; ?>'>dashboard</a> 

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -