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.
and this is where I wabt to concatenate the $_SESSION variable to an existing url
I want the link to be:
Thanks in advance.
EFL_Teacher
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