pstanbra Posted October 23, 2006 Share Posted October 23, 2006 I post a form to a php document and want to pass these variables on laterBut how can I mix my variable with a variable from $post$_SESSION['description'] = "Remote Supoport Deposit%0D%0D"$_POST["details"]; where $_POST["details"]; contains text entered on a form regarding work to be carried out Link to comment https://forums.phpfreaks.com/topic/24825-probably-an-easy-fix-session-variable/ Share on other sites More sharing options...
gmwebs Posted October 23, 2006 Share Posted October 23, 2006 If you mean concatenate text with a variable, then try....[code]<?php$_SESSION['description'] = "Remote Supoport Deposit " . $_POST["details"]; ?>[/code] Link to comment https://forums.phpfreaks.com/topic/24825-probably-an-easy-fix-session-variable/#findComment-113062 Share on other sites More sharing options...
pstanbra Posted October 23, 2006 Author Share Posted October 23, 2006 I tried this and that didnt work Link to comment https://forums.phpfreaks.com/topic/24825-probably-an-easy-fix-session-variable/#findComment-113066 Share on other sites More sharing options...
gmwebs Posted October 23, 2006 Share Posted October 23, 2006 Could you explain the result you are trying to achieve a bit more please? Did you debug the $_SESSION['description'] variable and what was its value? Link to comment https://forums.phpfreaks.com/topic/24825-probably-an-easy-fix-session-variable/#findComment-113068 Share on other sites More sharing options...
pstanbra Posted October 23, 2006 Author Share Posted October 23, 2006 no - i lied - it does work - was a problem with my form element - thanks Link to comment https://forums.phpfreaks.com/topic/24825-probably-an-easy-fix-session-variable/#findComment-113108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.