Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

concantenate $_SESSION variable and hyperlink

$
0
0
Hi,
I'm an EFL teacher who programs a wee bit. I am trying to concatenate a PHP $_SESSION and an existing link in an options value. Is this even possible? I've tried and tried but no luck. Here is my code. Any assistance would be greatly appreciated.

$_SESSION['coursename']=$_POST['coursename'];//my session variable



and this is where I wabt to concatenate the $_SESSION variable to an existing url

echo '<option value= "SpeakingDataEntry.php">Speaking</option>';
//it's part of an options dropdown list

I want the link to be:

echo '<option value= "$_SESSION['coursename'] . SpeakingDataEntry.php">Speaking</option>';


Thanks in advance.

EFL_Teacher

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>