Session behaviors
O.K., I still need some help here.
When I create the registration pages for the participants BADGE_Registration and BADGE_Profile there is no session start line at the top of the BADGE_Registration page.
At some point you gave me the following code to start a session:
<?php if(!session_id()) session_start(); ?> // at top of page before anything else OR
But the code at the top of the BADGE_Profile page (to which the BADGE_Registration page redirects so the user can update / correct it) is:
<?php if (!isset($_SESSION)) {
session_start();
}
?>
The User is coming to the BADGE_Registration page through a link I created on the USER_Profile page, and I would like the USERS "id" (primary key on the USERS tabel) to be transferred to the BADGE_Registration page and be inserted into the BADGE database table as the foreign key "id" (I am assuming the primary key, "b_id" will auto increment on the "insert" behavior, right?)
Similarly, the "b_id" and "id" and "a_id" (from the ACTIVITIES table) would need to be inserted into the one of the orders tables, so how this is done (IF it can be done) is important for us.
I hope this is clear. My head is swimming, frankly.
Cal