Author |
Topic  |
|
brendan1431
Starting Member
5 Posts |
Posted - 10 October 2006 : 12:47:48
|
Hi Everyone,
I am setting up a new Snitz Forum and would like to host the login form externally (on a different site). I have no problems POSTing data to the forum from the external site; however, when I get the login successful screen, the "Back to Forum" and META refresh take me back to the external site. I would rather not modify the forum code. Is there any way to pass an additional variable on submit to set this redirect so it is not dynamically created from the referer.
Thanks in advance for any feedback.
Brendan |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 10 October 2006 : 12:50:15
|
Add a hidden field named "target" to your form and use the URI you would like to redirect to as the value. Note that if you want to use a relative URI, it must be relative to your forum's directory not the page your login form is on.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
brendan1431
Starting Member
5 Posts |
Posted - 10 October 2006 : 13:01:29
|
Thanks so much... I will give it a try!
Brendan |
 |
|
brendan1431
Starting Member
5 Posts |
Posted - 10 October 2006 : 14:08:05
|
Unfortunately, this is not working. It is still redirecting back to to the external login page. I added
<input type=hidden name=target value=http://some-url.com/forum/Default.asp>
Anything else I should be adding?
Thanks again.
Brendan |
 |
|
brendan1431
Starting Member
5 Posts |
Posted - 10 October 2006 : 14:34:01
|
If it is any help, the version I am using is 3.4.05.
Brendan |
 |
|
brendan1431
Starting Member
5 Posts |
Posted - 10 October 2006 : 16:37:34
|
OK... So I am grasping at straws here... I have set the variable in my form and this is not working. So, I downloaded a copy of the code for my distribution of the Snitz software, cracked open login.asp and found the following line:
strTarget = trim(chkString(request("target"),"SQLString"))
Should this not be:
strTarget = trim(chkString(request.form("target"),"SQLString"))
Your help would be so appreciated.
Thanks.
Brendan |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 10 October 2006 : 18:38:47
|
Unless I'm mistaken, the target is passed as a form value in some areas and a query string value in others, so its not a mistake (if I'm understanding right... the last few days have me a little worn down so it could just be either a fuzzy mind or the Miller Genuine Draft) |
 |
|
|
Topic  |
|