I already did my homework - read through forum archives (some say to refer to php manual), refered to manual, read postings there, STILL can't get this to work. Please take pity and don't refer me to another source...
I need to collect 20 pieces of info from forms. I want to collect it in two different forms. I want the first 5 pieces of info to be inserted into the same MySQL record as the last 15 pieces of info, all reflecting one single new user's info. I feel I need to register the first five pieces of info as global variables and pass the session ID through the URL, and then INSERT all 20 pieces of info into MySQL after the user fills out the second form.
Clear? Good - let's proceed.
The user will come across an html page. At the top of this page I have the following:
<?php
session_start();
session_register($org_username);
session_register($org_password);
session_register($tax_id);
session_register($org_name);
?>
(I've also tried this with
session_register("org_username");
)
The form's ACTION is:
create_basicprofile.php
In this file, I have the following:
header( "Location: http://www.resultshare.org/contactinfo.php?<?=SID?>");
exit;
BUT when I click on the submit button from the first form, create_basicprofile.php sends me to the URL www.resultshare.org/contactinfo.php?<?=SID?>
which is the correct page (contactinfo.php) but it doesn't actually generate a session id. (there are no numbers replacing "SID")
By the way, on the contactinfo.php page, I start off with the following:
<?php
session_start();
?>
I think the problems later on with the inability to insert all 20 form fields into one single record in a MySQL table stem from the inability to start a session and/or successfully register all 20 damn variables.
Now, after all that -- can you please instruct me to what I am doing wrong?
Thank you sincerely,
A tired newbie,
Claire