www.webdeveloper.com
Results 1 to 8 of 8

Thread: NEED SCRIPT for sessions (?)

  1. #1
    Join Date
    Jun 2003
    Posts
    13

    NEED SCRIPT for sessions (?)

    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.

  2. #2
    Join Date
    Feb 2003
    Location
    Aberdeen, Washington, USA
    Posts
    1,859

    Exclamation No Double Posting

    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.

  3. #3
    Join Date
    Jun 2003
    Posts
    13
    The double post was a mistake. I hit the back button and to go back and next thing I knew, it double posted.

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Deleted the doublt post...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  5. #5
    Join Date
    Jul 2003
    Posts
    157

    Re: NEED SCRIPT for sessions (?)

    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.

  6. #6
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    I'm not exactly sure what you are asking. Could you try to explain it differently?

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  7. #7
    Join Date
    Jun 2003
    Posts
    13
    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!

  8. #8
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Take a look at http://us2.php.net/manual/en/function.setcookie.php. Note expecially the path information...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles