Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1434 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Need help working out something

Thread title: Need help working out something
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
12-31-2006, 06:39 PM
#1
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old  Need help working out something

I have a series of drop down menus such as:

Menu One:
  • Select one please...
  • Basketball
  • Soccer
  • Golf

Menu Two:
  • Select one please...
  • Basketball
  • Soccer
  • Golf

Menu Three:
  • Select one please...
  • Basketball
  • Soccer
  • Golf

And each of the three list items corresponds to a value (For examples say, 1pt, 2pt, 3pt respectively).

Now I've been trying to wrap my head around on the best way to have it so that if a person selects Soccer and Golf, it would then tally the total and submit it to the database. (Total being 5pts)
It also has to recognize when a field contains 'Select one please...' and count that as 0pts.

I've been trying to just do it with simple math functions in PHP, calling each sport's value when called then trying to add them but it gets mucked up when I have any of the 0pt selections.

Any suggestions on the best route to make such a tool?

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed