This topic is locked

Sessions not working on second add

1/30/2008 10:11:10 PM
PHPRunner General questions
R
run4sbc author

I have a slight problem with my latest project. I have sessions created for the TeamName and TeamCode variables, and on the add page I have them as read-only fields with the default value being $_SESSION["TeamCode"] to show the data.
It works fine on the first add, but the second add to the database from the same page does not input these fields. Is there a re-run for the session or something I can input to make the session run each time the page is used?
Here is the events for the add page

$values["TeamName"]= $_SESSION["TeamName"];

$values["TeamCode"]= $_SESSION["TeamCode"];
Thanks!

Cody

Sergey Kornilov admin 1/31/2008

Where and when you populate those session variables?