I am trying to pass on some variables using SESSION from one PHP page to the next.
The first page contains this code and after the user clicks submit, it goes to Page 2:
Are you sure your variables are set i.e. $totalcost? A comment on your code. Unless, you are breaking in and out of PHP and HTML, you do not need to open and close PHP on every line.
This can be rewritten:
As: