Jump to content


DVD Website Project (PHP)


6 replies to this topic

#1 Crofty

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 26 August 2006 - 07:33 AM

Hey, im trying to make a website that allows me to sell dvds to people via paypal. I have managed to figure out how to send money through paypal to people and recieve, my only problem is that i need some advice on how to make it so when people login to my site it goes back to my index page and says "Welcome *****".

Thats all for now thanks.

#2 Chaos King

    Senior Programmer

  • P2L Staff
  • PipPipPip
  • 676 posts
  • Gender:Male
  • Location:Florida

Posted 26 August 2006 - 07:59 AM

So what you need is a membership frontend/backend which ties the users with their transactions.

How much PHP knowledge do you have?

#3 Crofty

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 26 August 2006 - 09:28 AM

I have a decent amount of knowledge with php, and yeah that sounds like something im trying to produce i have the membership script made and the login but i just need to know really how to make it so i know when there logged in.

#4 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 26 August 2006 - 10:20 AM

Well, I would go with session data, you simply have to go something like:
echo "Welcome $_SESSION['name']";
Same technique can be applied to data pulled from a cookie, a database, anything really.

Building a full secure shopping cart script would be the fun part, lol.
Not quite sure on what you're asking. Are you asking for just that snippet I posted, or are you asking for a full membership/shopping cart system?
Or are you trying to see who is logged in at any given time?
The latter would be done with cookies or something, and a database most probably. I'm not quite sure myself really.

#5 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 26 August 2006 - 11:39 AM

you'll want to use something like osCommerce then.

It pretty much does everything you want to do. :)

#6 Crofty

    Young Padawan

  • Members
  • Pip
  • 32 posts

Posted 27 August 2006 - 05:03 AM

I do not need a full membership/shopping script lol i will use paypals shopping cart kind of, all i need is to be able to allow them to login and then it will take me back to index page with welcome *** on the page. i only need this so that i know how to post what to really.

thanks

#7 Korndawg

    Young Padawan

  • Members
  • Pip
  • 111 posts
  • Gender:Male
  • Location:Texas, USA

Posted 27 August 2006 - 05:13 AM

Then ya use what Demonslay said... I use it on one of my other sites... (ex. below)

$message = "Welcome to Plantek Designs " . $_SESSION['username'] . "!";

Edited by Korndawg, 27 August 2006 - 05:13 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users