Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Who can help me please ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Who can help me please ?

 Post Reply Post Reply Page  12>
Author
ccom View Drop Down
Newbie
Newbie


Joined: 06 August 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ccom Quote  Post ReplyReply Direct Link To This Post Topic: Who can help me please ?
    Posted: 06 August 2003 at 2:17pm

Hello,

Is it possible to have a page outside the forum that does the same as the login page in the forum ?
I want people to be able to login on a default.asp page just outside the folder "forum"

It should just need the login and pasword form fields on that page and once you enter then you go to the forum.

One solution would be for me that when you are not logged in on the forum you get the login page. (or when you loggout)

I hope someone has a solution for me. Thanks in advance.

Back to Top
WAKO View Drop Down
Groupie
Groupie
Avatar

Joined: 18 July 2003
Location: United States
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote WAKO Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2003 at 11:05pm

Yes it is very easy just add your login form to a simple html page and direct the form to the check_user.asp page within the same diretory!

Im assuming you know how to build the form!

Back to Top
ccom View Drop Down
Newbie
Newbie


Joined: 06 August 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ccom Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 9:01am

I have no idea on how to fix it,

Would you please be so kind to explain me how to do it?

It would  be great !!

 

Thanks

 

I've tried and tried but it doesn't work

Back to Top
WAKO View Drop Down
Groupie
Groupie
Avatar

Joined: 18 July 2003
Location: United States
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote WAKO Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 9:21am
What HTML Editor are you using?
WAKO
Back to Top
ccom View Drop Down
Newbie
Newbie


Joined: 06 August 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ccom Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 11:48am
It is dreamweaver.
Back to Top
3BEPb View Drop Down
Groupie
Groupie


Joined: 07 August 2003
Location: United States
Status: Offline
Points: 81
Post Options Post Options   Thanks (0) Thanks(0)   Quote 3BEPb Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2003 at 10:51pm

Whatever... :)

The easiestway to do this will be as follows: copy everything between tags <form> and </form> in original login page and paste it into the external page at your site. That part of code looks as follows in my case (table tags deleted, cyrillic stuff changed to english):

---------------------------------------------------

<form method="post" name="frmLogin" action="login_user.asp?FID=0" onSubmit="return CheckForm();" onReset="return confirm('Form reset');">

User Name: <input type="text" name="name" size="15" maxlength="15" value="" />

password: <input type="password" name="password" size="15" maxlength="15" />


<input type="checkbox" name="AutoLogin" value="True" checked />Auto Login

<input type="checkbox" name="ActiveUsers" value="True" checked />Active users

<input type="hidden" name="sessionID" value="538760709" />
<input type="submit" name="Submit" value="Login" />

</form>

--------------------------------

Don't forget to mention the full URL (just in case :) to actual forum login page, and replace SessionID with the actual one for each user.

Good luck

Back to Top
WAKO View Drop Down
Groupie
Groupie
Avatar

Joined: 18 July 2003
Location: United States
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote WAKO Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2003 at 2:33am

wow i asked that lol good going on "Dreamweaver" wasnt awake heres how you can do this on your asp page modified the one above to work correctly

put this where you want 4 your login you can modify the tables if you like

 

<%
Dim Return

return = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING")
%>

    <form action="login_user.asp?return=<%=Return%>" name="frmLogin" method="post" onSubmit="return CheckForm();">
          <table width="100%" border="0" cellspacing="0" cellpadding="2">
           <tr>
            <td align="right" width="31%"><span class="text">Username: </span>&nbsp;</td>
            <td width="69%">
             <input type="text" name="name" size="15" maxlength="15" />
            </td>
           </tr>
           <tr>
            <td align="right" width="31%"><span class="text">Password: </span>&nbsp; </td>
            <td width="69%">
             <input type="password" name="password" size="15" maxlength="15" />
            </td>
           </tr>
           <tr>
            <td align="right" width="31%">&nbsp;</td>
            <td width="69%" class="text"><span class="text"><input type="hidden" name="AutoLogin" value="True" checked /></span></td>
           </tr>
           <tr>
            <td align="right" width="31%">&nbsp;</td>
            <td width="69%" class="text"><span class="text"><input type="hidden" name="ActiveUsers" value="true"></span></td>
           </tr>
           <tr>
            <td align="right" width="31%">&nbsp;</td>
            <td width="69%">
             <input type="submit" name="Submit" value="Login" />
             <input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />
            </td>
           </tr>
          </table>
          </form>

In order for this to work you need to add a line of code below in your login_user.asp at line at 165

Response.Redirect(request.querystring("return"))

will look like this once entered

    Response.Redirect("default.asp")
   Response.Redirect(request.querystring("return"))
   End If



Edited by WAKO
WAKO
Back to Top
ccom View Drop Down
Newbie
Newbie


Joined: 06 August 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ccom Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2003 at 4:16am

I will try that right away.

 

Thanks in advance

Back to Top
 Post Reply Post Reply Page  12>

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.