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.
DVD Website Project (PHP)
Started by Crofty, Aug 26 2006 07:33 AM
6 replies to this topic
#1
Posted 26 August 2006 - 07:33 AM
#2
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?
How much PHP knowledge do you have?
#3
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
Posted 26 August 2006 - 10:20 AM
Well, I would go with session data, you simply have to go something like:
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.
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
Posted 26 August 2006 - 11:39 AM
#6
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
thanks
#7
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
