Web Design Forum: Newbie learning php & sql needing help with a small mattter - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Newbie learning php & sql needing help with a small mattter Rate Topic: -----

#1 User is offline   dan... 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 28-January 10
  • Reputation: 0

Posted 11 March 2010 - 01:11 AM

Morning guys

I'm learning php and mysql and i'm taking it one step at a time, i think i'm now starting to understand it a little.

I have setup a drop down list working correctly, it takes me to different pages depending on what the user selects but it's for a e-commerce site and i need a database, so I think i've now figured out how to setup a database and have that drop down list display contents from my database instead of me putting it in the html code.

Can i assume that I can leave how the pages redirect as they are as all that's changing is how that list is getting the information and how do i record/save what had been selected from the drop down lists 5/6 pages further down the line i.e a checkout page?
0

#2 User is offline   TopShopper 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 878
  • Joined: 21-July 09
  • Reputation: 14
  • Gender:Male
  • Location:Cardiff, UK
  • Experience:Intermediate
  • Area of Expertise:Coder

Posted 11 March 2010 - 01:57 PM

If you put the information in a Session Variable, you will be able to retrieve it any time in the future untill the clients session ends. You can set the time before a session variable dies.

See here http://www.php.net/m...ook.session.php
0

#3 User is offline   Geeks 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 321
  • Joined: 07-October 09
  • Reputation: 11
  • Gender:Male
  • Location:South Africa
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 12 March 2010 - 12:14 PM

you can also use hidden fields, that way if cookies are disable it still works, or if it is not sensative information store it in the URL that way the user can bookmark the page after the selection is made
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users