Posted by J.O. Aho on 05/29/06 17:44
Ian Davies wrote:
> Hello
> I am trying to update a session, ie everytime the page is resubmitted I want
> the current selected value from a list to be appended to the old session
> value. I have the following code but am unable to get it to work. I dont
> know the correct syntac wher I have put the word 'PLUS'.
>
> <?php $_SESSION['savedcomm'] = $_SESSION['savedcomm'] PLUS
> $_POST['selectcomm'];?>
>
> I have tried & but this doesnt work, or even && which I have seen in some
> script
$_SESSION['savedcomm'] = $_SESSION['savedcomm'] . $_POST['selectcomm'];
//Aho
Navigation:
[Reply to this message]
|