#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0

    WML building links dynamically


    Hello, i have a question about dynamically building links in wml which you want to pass 2 variables in it.

    For example
    say i ask a user
    Select a city from below:
    Greece(city.asp?country=01&city=01)
    Berlin(city.asp?country=01&city=02)
    *parenthesis have link i want to build

    so i am reading these from the db and building the links i can pass one variable no problem but when i want to pass 2 its acting up. i pretty much want to do something like the code below but have 3 different links that pass different varialbes to city

    <do type="accept" label="SUBMIT">
    <go href="insert.asp" method="get" >
    <postfield name="city" value="$(varcity)" />
    <postfield name="coutry" value="$(varCountry)" />
    </go>
    </do>
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0

    so far


    this is what i have so far
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    3
    Rep Power
    0

    so far


    this is what i have so far

    Response.Write("<do type='accept' label='Choose city'>" )
    Response.Write("<go href='$(city_to_go_to)' method='get' />")
    Response.Write("</do>")
    Response.Write("<select name='city_to_go_to' >")
    Do until rs.EOF = true
    Response.Write("<option name='" & rs("city_Name") & "' value='city.asp'>" &_
    Response.Write("<postfield name='city' value='" & rs("city_Code") & "'/>" &_
    "<postfield name='country' value='" & rs("country_Code") & "'/>" ))
    Response.Write( rs("city_Name") & "</option>")
    rs.movenext
    Loop
    Response.Write ("</select>")

    but it only builds the link city.asp not
    city.asp?country=01&city=01 which is what i want. any ideas?

IMN logo majestic logo threadwatch logo seochat tools logo