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

 

Login between pages & cases

 
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 >> Login between pages & cases
Page: [1]
 
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
Login between pages & cases - 4/4/2008 1:49:58   
I have a check.asp page where someone has a couple of options

There's a match:

hyperlink to match page

No match: would you like to ADD the dog
With a hyperlink to the adddog.asp page with Case NDA

<a href="adddog.asp?dog=<%=escape(strdoggy)%>&add=NDA">Add <%=Ucase(strdoggy)%> to the database.</a>

I would like for the user to login if they want to ADD the dog. So I put the spooky login code in the case statment of NDA
(no login required if they want to view dogs, just add or edit)

With out the login code it works fine. Except if I use the spooky code I get error with case because it adds amp; in the statment

I get with making somone login below:

http://www.huntinglabpedigree.com/adddog.asp?dog=Trumarc%27s%20Raider&amp;add=NDA

Without making someone login (and this is the correct code):
http://www.huntinglabpedigree.com/adddog.asp?dog=Trumarc%27s%20Raider&add=NDA

How do I remove the amp; part?

The spooky code using is and I have it on a few other pages (edit pages, etc)
if session("UserName")&""="" then
response.redirect "/login.asp?Redirect="&Request.Servervariables("URL")&"?"&Request.Servervariables("QUERY_STRING")
end if
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Login between pages & cases - 4/4/2008 2:30:21   
It shouldnt be doing that.
When you view the source of the login page (after being redirected) what does this line show?

<input type="hidden" name="Redirect" value="##############">

Normally it will show & here, but this is modified when reposted

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to crosscreek)
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
RE: Login between pages & cases - 4/4/2008 3:00:09   
<input type="hidden" name="Redirect" value="/adddog.asp?dog=Trumarc%raider&add=NDA">

This is the only page it does it with.

What would cause the amp?




P.S. (from login emailing problems answer) I sent the email to you by clicking on the email tab under your avatar. The email is floating in cyber space


(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Login between pages & cases - 4/7/2008 15:53:39   
Can you send me an email on this one? I want to compare the login code you are using with mine

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to crosscreek)
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
RE: Login between pages & cases - 4/7/2008 16:01:14   
I did change up my code a little & haven't tested out the login with the add dog page.

With the adddog.asp page, I was creating a Loop with with checking for duplicates...etc. So this might have been the problem....I changed it to a better coding & removed the loop commands.

I was working on that last night, let me check to see if I get a amp; problem again & I will defiantly let you know one way or the other.

Thanks....

(in reply to Spooky)
crosscreek

 

Posts: 107
Joined: 2/5/2008
Status: offline

 
RE: Login between pages & cases - 4/7/2008 16:15:32   
Still not working...Sending you an email!!!

Thanks
Helena

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Login between pages & cases
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