ublapach Posted April 24, 2008 Share Posted April 24, 2008 Can i set a session variable = to text ? and if so how would i go about doing this tryed @$_SESSION['problem'] = $row['Username or Password are Incorrect Please Try again']; Link to comment https://forums.phpfreaks.com/topic/102630-solved-session-variables/ Share on other sites More sharing options...
947740 Posted April 24, 2008 Share Posted April 24, 2008 You can send whatever you want to a $_SESSION variable. Try: $_SESSION['problem'] = "Username or Password are Incorrect Please Try again"; Link to comment https://forums.phpfreaks.com/topic/102630-solved-session-variables/#findComment-525600 Share on other sites More sharing options...
ublapach Posted April 24, 2008 Author Share Posted April 24, 2008 and how would i echo that out again Link to comment https://forums.phpfreaks.com/topic/102630-solved-session-variables/#findComment-525605 Share on other sites More sharing options...
947740 Posted April 24, 2008 Share Posted April 24, 2008 Yes, on the next page you need it. Do not forget to start the session on the next page. Link to comment https://forums.phpfreaks.com/topic/102630-solved-session-variables/#findComment-525610 Share on other sites More sharing options...
ublapach Posted April 24, 2008 Author Share Posted April 24, 2008 thanks for the help Link to comment https://forums.phpfreaks.com/topic/102630-solved-session-variables/#findComment-525612 Share on other sites More sharing options...
947740 Posted April 24, 2008 Share Posted April 24, 2008 No problem! Link to comment https://forums.phpfreaks.com/topic/102630-solved-session-variables/#findComment-525614 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.