Jump to content

Archived

This topic is now archived and is closed to further replies.

pstanbra

probably an easy fix - session variable

Recommended Posts

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

Share this post


Link to post
Share on other sites
If you mean concatenate text with a variable, then try....

[code]
<?php

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

?>
[/code]

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.