Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 Register.asp refresh problem
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 26 June 2001 :  11:39:33  Show Profile
In regards to this topic posted by WildBill: link.asp?TOPIC_ID=11987
quote:
For some reason when you go to the register new user form the page keeps reloading. It doesn't make a difference whether you go there thru the link on the page or directly the page just keeps refreshing.

Anyone else have this problem or know how to fix it?

Here is the link to the page.

http://www.ocp-contractors.com/forums/register.asp?mode=Register

Thanks!
I'm not sure about the IE 5 bug HuwR was refering to in the post, but WildBill if you look at the html code, there is this code that shouldn't be there:
<head>
<meta http-equiv="Refresh" content="2; URL=">
</head>
that's causing the page to refresh. It's either at the end of the inc_top.asp file, or at the begining of register.asp.
HuwR, if that is the bug you were refering to, you can close this topic too, but if it isn't, hope it helps.

- David

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 26 June 2001 :  12:27:32  Show Profile  Visit HuwR's Homepage
Uhm, after taking another look at the code, you may be correct,

in the code,

<meta http-equiv="Refresh" content="2; URL=">

is actually

<meta http-equiv="Refresh" content="2; URL=<% =Request.Form("refer")%>">

The request.form("refer") is not being set, so I checked the code, this is where it is set

<input name="Refer" type="hidden" value="<% =Request.Form("Refer") %>">

As you can see, it is never set to anything, the line should be

<input name="Refer" type="hidden" value="<% =Request.ServerVariables("HTTP_REFERER") %>">


The code is at the end of register.asp in a Sub called ShowForm()

And my appoloies to WildBill for locking his other post.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 26 June 2001 :  23:43:16  Show Profile
Uhh, Huwr I think you got things a bit mixed up here.

This code in register.asp:
<input name="Refer" type="hidden" value="<% =Request.Form("Refer") %>">
is reffering to the "Refer" hidden form variable that is sent to the register page when you come from the policy page. If you don't come from the policy page, the Refer variable isn't set. This is what is on the policy page:
<input name="Refer" type="hidden" value="<% =Request.ServerVariables("HTTP_REFERER") %>">
Since we accessed WildBills register page directly, the Refer variable in the meta tag wasn't set because we didn't come from the policy page. But that's not what his problem was. There was this code as I had mentioned in my first post:
<head>
<meta http-equiv="Refresh" content="2; URL=">
</head>
That code was after the inc_top.asp code had finished, and right before the code for the folders images would start on the register.asp page. It's not part of the Snitz Forum code.

And to bring up another bug that I wanted to post, was that if you entered the register.asp page directly without coming from the policy.asp page, it lets you in. It shouldn't. It should read this:
There has been a problem.
You must first read the disclaimer/privacy statement by clicking on "register" link in the main forum window.
Go back to correct the problem.
That is in the register.asp page, but it doesn't work. It's an easy fix, so I won't bother to tell you the fix for it.

- David
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 27 June 2001 :  05:20:13  Show Profile  Visit HuwR's Homepage
So what are you saying is wildbill's problem.

where did the stray meta tag come from if it is not Snitz code, and if it is not Snitz code, then it is not a BUG.

I will fix the policy.asp problem

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 27 June 2001 :  10:42:35  Show Profile
That's exactly what I'm saying.
I don't know how he got that meta tag in there.

- David
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 27 June 2001 :  11:02:42  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
would it be better to do the following incase their is no referer?
<%
strHTTPReferer = Request.ServerVariables("HTTP_REFERER")
if strHTTPReferer = "" then
strHTTPReferer = "somepage.asp"
end if
%>
<input name="Refer" type="hidden" value="<%=strHTTPReferer%>">

quote:

Uhm, after taking another look at the code, you may be correct,

in the code,

<meta http-equiv="Refresh" content="2; URL=">

is actually

<meta http-equiv="Refresh" content="2; URL=<% =Request.Form("refer")%>">

The request.form("refer") is not being set, so I checked the code, this is where it is set

<input name="Refer" type="hidden" value="<% =Request.Form("Refer") %>">

As you can see, it is never set to anything, the line should be

<input name="Refer" type="hidden" value="<% =Request.ServerVariables("HTTP_REFERER") %>">


The code is at the end of register.asp in a Sub called ShowForm()

And my appoloies to WildBill for locking his other post.





Brad

Edited by - redbrad0 on 27 June 2001 11:03:14
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 27 June 2001 :  11:33:19  Show Profile
I'll take bets and give odds Frontpage did it. I've had exactly the same problem when editing (an older) register.asp with the FP editor.

FP want's META tags to be in a HEAD section, and if it finds tags elsewhere it wraps them with HEAD and moves them to the top of the page. Since the HEAD tags aren't in the register.asp file, when you edit with FP it adds the HEAD section. The net result with include files is two HEAD sections in the final HTML document.


======
Doug G
======
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 27 June 2001 :  12:49:52  Show Profile  Visit HuwR's Homepage
quote:

I'll take bets and give odds Frontpage did it. I've had exactly the same problem when editing (an older) register.asp with the FP editor.

FP want's META tags to be in a HEAD section, and if it finds tags elsewhere it wraps them with HEAD and moves them to the top of the page. Since the HEAD tags aren't in the register.asp file, when you edit with FP it adds the HEAD section. The net result with include files is two HEAD sections in the final HTML document.


======
Doug G
======



Thanks for that Doug, I would gues that is the problem. We could do with some confirmation from Wildbill as to wether this was the case, and he has now fixed it.



Redbrad,

My original fix was wrong, I saw the empty URL, and assumed it was just not being set correctly, when in fact it was an eronious piece of code.

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 27 June 2001 :  13:13:58  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
dont you think that in an odd case Request.ServerVariables("HTTP_REFERER")
could return nothing? this way if something goes wrong and it returns nothing it will redirect them to something else instead of just refreshing the page over and over again. just my 2 cents

quote:

Redbrad,

My original fix was wrong, I saw the empty URL, and assumed it was just not being set correctly, when in fact it was an eronious piece of code.



Brad
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 27 June 2001 :  16:58:29  Show Profile
V3.2a6, FP2000, editing register.asp in a local disk web will still move the META REFRESH tag to the top of register.asp and wrap it in HEAD tags. I just checked since it's been maybe 6-8 months since the last time I tried this.

I believe there is a somewhat lengthy thread in the old forums about this subject.


======
Doug G
======
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 25 July 2001 :  08:53:55  Show Profile  Visit gor's Homepage
Filing this one as User specific problem for now.

Also see: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=2281

Pierre
Join a Snitz Mailinglist
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07