Login between pages & cases (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


crosscreek -> 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 -> 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




crosscreek -> 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





Spooky -> 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




crosscreek -> 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....




crosscreek -> RE: Login between pages & cases (4/7/2008 16:15:32)

Still not working...Sending you an email!!!

Thanks
Helena




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875