Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    105
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help me out, Simple newbie question

    Function getImage(idmod)
    img=""
    select case idmod
    case 1
    img="Mod1.gif"
    case 2
    img="Mod2.gif"
    case 3
    img="Mod3.gif"

    end select
    getImage=img
    End Function

    Suppose I got the above code, when someone chooses an image of a car, he goes to choose other options.

    but before choosing other options this happens:

    a href="process.asp?setm=y&variable=img&idmod=<%=rsCat("IDType")%>

    how do I also send which image filename was selected in the query string? If I want to add it where the bold text is.

    when I do it i get errors.

    thanks

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    but before choosing other options this happens:
    
    a href="process.asp?setm=y&variable=img&idmod=<%=rsCat("IDType")%>
    Not sure what you mean


    What is your current code?

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Posts
    105
    Thanks
    0
    Thanked 0 Times in 0 Posts
    why did I receive an infraction for this post?

  • #4
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Check your PM's, it'll explain. Check the posting guidelines:
    http://www.codingforums.com/postguide.htm

    Read that and then read the title of your thread.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •