Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - returnUrl - Isn't working for me in v9
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

returnUrl - Isn't working for me in v9

 Post Reply Post Reply
Author
ohiopbx View Drop Down
Groupie
Groupie


Joined: 21 February 2005
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote ohiopbx Quote  Post ReplyReply Direct Link To This Post Topic: returnUrl - Isn't working for me in v9
    Posted: 29 July 2007 at 1:41am
Borg, the return url does not work for me.
Line 108'ish of "login_user_test.asp"

If strReturnURL = "" OR Instr(strReturnURL, "?") = 0 Then strReturnURL = "default.asp" & strQsSID1


prevents me from being able to use:

http://localhost/ohiopbx9/login_user.asp?returnURL=_mod_approve_field_reviews.asp


i put some code in the usertest to see what it is trying to do and this is what it looks like:
response.write(strReturnURL & "  " & Instr(strReturnURL, "?"))
'This is the normal code
If strReturnURL = "" OR Instr(strReturnURL, "?") = 0 Then strReturnURL = "default.asp" & strQsSID1


and this is what is printed out:
_mod_approve_field_reviews.asp 0


and the url resolves to:

http://localhost/ohiopbx9/login_user_test.asp?_mod_approve_field_reviews.asp


I have no idea why you are looking for ? but if i comment that line out it works perfectly, redirects me right to the page i need. Any insight?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2007 at 9:46am
There where a few issues with getting the correct return pages, so the system has been redone for the next release.
Back to Top
ohiopbx View Drop Down
Groupie
Groupie


Joined: 21 February 2005
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote ohiopbx Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2007 at 3:55pm
Ok, well i went ahead and removed
OR Instr(strReturnURL, "?")


and it works perfectly, what does that question mark do?
Back to Top
stained View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Location: United Kingdom
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote stained Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2007 at 4:09pm
Quote
OR Instr(strReturnURL, "?")
and it works perfectly, what does that question mark do?


question mark isn't doing anything as such.

the code line above is is looking for a ? in the return url.
with asp to add variables to the end of a url you need a question mark after the url i.e www.webwiz.com/index.asp?variable=cheese
Back to Top
ohiopbx View Drop Down
Groupie
Groupie


Joined: 21 February 2005
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote ohiopbx Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2007 at 5:17pm
then i would say it should be an AND statement and maybe not an OR
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.