markifornia Posted April 16, 2012 Share Posted April 16, 2012 session_start(); $_SESSION['fullname'] = $data['firstname'] . $data['lastname']; I am getting an undefined variable when I call on $_SESSION['fullname']; Can this be done? Thanks, Mark Link to comment Share on other sites More sharing options...
Larry Posted April 16, 2012 Share Posted April 16, 2012 It can absolutely be done. Something else must be causing the problem. Link to comment Share on other sites More sharing options...
markifornia Posted April 16, 2012 Author Share Posted April 16, 2012 thanks larry ill do some debugging with that. after concatenation as shown in above step, can we assign that superglobal to a variable like so: $fn = $_SESSION['fullname']; Link to comment Share on other sites More sharing options...
Larry Posted April 16, 2012 Share Posted April 16, 2012 Yes, you can, but I don't know why you would. Link to comment Share on other sites More sharing options...
Antonio Conte Posted April 17, 2012 Share Posted April 17, 2012 Use a print_r() on the $_SESSION array to see if you have any values there. 1 Link to comment Share on other sites More sharing options...
markifornia Posted April 17, 2012 Author Share Posted April 17, 2012 very useful, thanks antionio. Link to comment Share on other sites More sharing options...
Recommended Posts