Jump to content


Photo

probably an easy fix - session variable


  • Please log in to reply
4 replies to this topic

#1 pstanbra

pstanbra
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 23 October 2006 - 10:46 AM

I post a form to a php document and want to pass these variables on later
But 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

#2 gmwebs

gmwebs
  • Members
  • PipPipPip
  • Advanced Member
  • 174 posts
  • LocationLondon

Posted 23 October 2006 - 10:50 AM

If you mean concatenate text with a variable, then try....

<?php

$_SESSION['description'] = "Remote Supoport Deposit " . $_POST["details"]; 

?>


#3 pstanbra

pstanbra
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 23 October 2006 - 11:01 AM

I tried this and that didnt work

#4 gmwebs

gmwebs
  • Members
  • PipPipPip
  • Advanced Member
  • 174 posts
  • LocationLondon

Posted 23 October 2006 - 11:07 AM

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?

#5 pstanbra

pstanbra
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 23 October 2006 - 01:05 PM

no - i lied - it does work - was a problem with my form element - thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users