Click to See Complete Forum and Search --> : NEED SCRIPT for sessions (?)
kathyplack
07-15-2003, 06:54 PM
I can do most things, but not this:
The sponsor's homepage gives a sponsor name and ID number and asks for the users name. Once the user enters their name and clicks submit, it takes them to the company homepage. After going through the entire company site, the user joins by filling out a form on the company's secure server which is already populated thanks to sessions with the sponsor's name and ID number and the user's name.
How is this done. I have looked at countless tutorials in PHP and cookies and so on, but I just can't seem to figure it out on my own. Is this possible?
I have an example page waiting for help at http://www.hhofg.com/distributor_file/plack1.html
The secure form is then located at
https://ssl.adgrafix.com/users/hhofg/join.html
All help will be greatly appreciated! If this is something I can pay someone for, I'd be happy to stop racking my puny little brain.
There is no need to post the same thred twice. The users of this forum that may have an answer for you will get to it as soon as possible.
kathyplack
07-15-2003, 08:41 PM
The double post was a mistake. I hit the back button and to go back and next thing I knew, it double posted.
Deleted the doublt post...
mikeyzc
07-16-2003, 02:09 PM
Originally posted by kathyplack
I can do most things, but not this:
The sponsor's homepage gives a sponsor name and ID number and asks for the users name. Once the user enters their name and clicks submit, it takes them to the company homepage. After going through the entire company site, the user joins by filling out a form on the company's secure server which is already populated thanks to sessions with the sponsor's name and ID number and the user's name.
How is this done. I have looked at countless tutorials in PHP and cookies and so on, but I just can't seem to figure it out on my own. Is this possible?
I have an example page waiting for help at http://www.hhofg.com/distributor_file/plack1.html
The secure form is then located at
https://ssl.adgrafix.com/users/hhofg/join.html
All help will be greatly appreciated! If this is something I can pay someone for, I'd be happy to stop racking my puny little brain.
I'm trying to do the exact same thing! Like a referral program.
I'm not exactly sure what you are asking. Could you try to explain it differently?
kathyplack
07-16-2003, 04:41 PM
I'll try. It is like a referral program.
We are a company with networkers. I want to give every networker their own single homepage that then link back to the company website. Their page is very basic and I have one outlined at http://www.hhofg.com/distributor_file/plack1.html. As new networkers join and get their own homepage, it would remain much the same URL but with a different .html on the end. Their page asks for the user to fill in their name - and it has the networker's name and ID# values assigned to it. Once the user enters their name, they are taken to http://www.hhofg.com to access the entire company site. When the user finally gets to the sign up form located at https://ssl.adgrafix.com/users/hhofg/join.html, I would like the form to be repopulated with the user's name and the networker's name and ID# to ensure that they get the credit for bringing them into our site.
I was able to get cookies to work through to a second page, but not through a number of pages and certainly not through to the ssl page. So I gave up and started reading more and found the info on sessions. Now I'm not sure which way to go, but I would greatly appreciate the help in determining whether cookies, sessions or something else would be the appropriate means to the end.... AND help in the script writing for such a task.
Does that explain it any better? Should I try again? I would love to share the results with anyone that wants them. Aloha!
Take a look at http://us2.php.net/manual/en/function.setcookie.php. Note expecially the path information...