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 1854 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

If...Else Help

Thread title: If...Else Help
Closed Thread    
    Thread tools Search this thread Display Modes  
04-27-2008, 01:28 AM
#1
Randy is offline Randy
Status: Sin Binner
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 1,121
iTrader: 13 / 100%
 

Randy is on a distinguished road

Send a message via MSN to Randy

  Old  If...Else Help

Hello, yes I am trying to create a script which details are not needed. and I am trying to use a form with it, I have a drop down menu where the user selects which say "add-on" the user wants to purchase and I am trying to set it up for when a certain option is selected it will display secondary options for that single option later below the main drop down menu. How might i go about doing this?

Best Regards,
Randy Cram

04-27-2008, 02:00 AM
#2
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

It's probably not done best in PHP. I'd suggest javascript. I assume you don't want someone to have to submit the form after each change or have the page reload after each change-- so javascript is the best way to approach it.

04-27-2008, 02:08 AM
#3
Randy is offline Randy
Status: Sin Binner
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 1,121
iTrader: 13 / 100%
 

Randy is on a distinguished road

Send a message via MSN to Randy

  Old

Alright, thank you very much Jeff.

04-30-2008, 09:50 AM
#4
Dregond Rahl is offline Dregond Rahl
Status: Junior Member
Join date: Apr 2008
Location:
Expertise:
Software:
 
Posts: 79
iTrader: 3 / 100%
 

Dregond Rahl is on a distinguished road

  Old

AJAX and PHP might be better for speed and future changes

05-01-2008, 07:55 PM
#5
ReduX is offline ReduX
Status: I'm new around here
Join date: May 2008
Location: Spokane, WA
Expertise:
Software:
 
Posts: 3
iTrader: 0 / 0%
 

ReduX is on a distinguished road

Send a message via MSN to ReduX

  Old

This may be of some assistance to you. It's a tutorial on doing exactly what you want.

Demo: http://www.fornewbie.com/dynDropDown.php

Tutorial: http://www.fornewbie.com/php/create_...using_php.html

Closed Thread    


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