|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
so far
this is what i have so far
|
|
#3
|
|||
|
|||
|
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? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > WML building links dynamically |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|