navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

url decoding

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> url decoding
Page: [1]
 
seth

 

Posts: 312
From: canada
Status: offline

 
url decoding - 3/4/2002 1:18:44   
i'm confused about urlEncoded strings. I have a form that urlencoded the fields and values, into pairs and the string points to an asp page. On that asp page i have a simple script:
If a1 = 1 Then
response.redirect "...."
End If

al is a field name in the encoded sting and its value is either 0 or 1, by choice.

Is there something i need to do in the asp page in order to use the field name and value like this, cause when a1 field is selected so the value = 1, nothing happens when the string is direct at the asp page, the page is blank?


William Lee

 

Posts: 1129
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: url decoding - 3/4/2002 1:53:02   
See if the values are passed to the page correctly. At the top of the asp page put this <%=Request("a1")%>

It should either print 0 or 1.

William Lee

(in reply to seth)
seth

 

Posts: 312
From: canada
Status: offline

 
RE: url decoding - 3/4/2002 2:16:05   
yes i got a 1 value on the blank page
things seem to be looking up
would i have to use:
Request("value") for every field name?
...so...
If a1 = 1 Then
response.redirect "...."
End If
....would then be.....
If Request("a1") = 1 Then
response.redirect "...."
End If


(in reply to seth)
William Lee

 

Posts: 1129
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: url decoding - 3/4/2002 2:17:46   
quote:

yes i got a 1 value on the blank page
things seem to be looking up
would i have to use:
Request("value") for every field name?

 



Absolutely

Edited by - William Lee on 03/04/2002 02:19:36

(in reply to seth)
seth

 

Posts: 312
From: canada
Status: offline

 
RE: url decoding - 3/4/2002 2:19:38   
thanks William!!


(in reply to seth)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> url decoding
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts