Need help with SS listings script!

Discussion in 'Programming' started by math20, Jul 13, 2006.

  1. #1
    I have a directory running the SS listings script and think it is pretty great for a free script but I need to enable a feature that it currently does not have: Submitting a website without going to the category!

    Here is the link, I would like a dropdown list to select the categories from.

    I'm sure this is probably some easy thing I'm not understanding but I would really like your help!

    Thanks!
     
    math20, Jul 13, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    it is all based on a querystring catid. So - in your script, modify the code to check:
    if(is_numeric($_GET['catid']) && $_GET['catid'] != "") {}
    if it is not numeric, and not blank, then connect to your database, run through a loop - a select list. Then add a javascript function to change url to the catid. So - on the select list index change, call javascript function to redirect to the url with catid=Index of Select List Selected Index.
     
    ccoonen, Jul 13, 2006 IP
  3. math20

    math20 Peon

    Messages:
    1,562
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I was thoroughly confused by what you just said so here is the code in question:

     
    math20, Jul 13, 2006 IP
  4. math20

    math20 Peon

    Messages:
    1,562
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Anybody???
     
    math20, Jul 13, 2006 IP