I did this so that I could use the variable Semester somewhere else in the page
<?php session_start(); ?>
<?php
$semester = mysql_real_escape_string($_POST['semester']) ;
$_SESSION['semester'] = $semester;
?>
and it is not working somewhere else on the page. So, what did I do wrong?
did you do
session_start();at the top of your script? that’s usually the issue in problems like this. it took me a while to learn that one when I started doing session stuff 🙂