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 Quote Link to comment 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] Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.