Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 5th, 2004, 02:56 PM
kapsolas kapsolas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 kapsolas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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>

Reply With Quote
  #2  
Old February 5th, 2004, 03:00 PM
kapsolas kapsolas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 kapsolas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
so far

this is what i have so far

Reply With Quote
  #3  
Old February 5th, 2004, 03:00 PM
kapsolas kapsolas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 3 kapsolas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > WML building links dynamically


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT