Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Create new users using ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Create new users using ASP

 Post Reply Post Reply
Author
jorgito View Drop Down
Newbie
Newbie


Joined: 11 June 2005
Location: Greece
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jorgito Quote  Post ReplyReply Direct Link To This Post Topic: Create new users using ASP
    Posted: 11 June 2005 at 4:25pm
Hi everyone!

I am using the forum as part of my current web site.

The users use a registration form that I have created in order to register in my web site. This gives them access to a lot of resources as well as an e-mail address.

What I am trying to do is register them in the forum as well.

So, when they register using my registration form, I want to be able to register them in the forum as well.

I am using ASP.

Should I update the database (mdb) directly? If yes, how should I fill in the fields?

If not, should I use the existing register.asp file. If yes, how?

Thanks everyone
Jorgito

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2005 at 4:40pm
There's a few threads on integrating webwiz with an existing site that cover what your after. I'd try searching for "integrat existing" for starters.
 
IIRC, I think the recommendation is to use the wwf registration method and convert your site's registration to it rather than the other way around. WWF registration includes things like one-way encrypted passwords. The threads on it cover the pros and cons and "gotcha"'s in some detail.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
jorgito View Drop Down
Newbie
Newbie


Joined: 11 June 2005
Location: Greece
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jorgito Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2005 at 2:40pm
I did a little research and I came up with the following:

1. When a new user registers, I create an iframe with the page ForumReg.asp which contains the following code:

<body onLoad="doSubmit();return true;">
<form method="post" name="frmRegister" id="frmRegister" action="/forum/register.asp?FID=0">
<input type="hidden" name="name" value="<%= username %>" >
<input type="hidden" name="password" value="<%= password %>" >
<input type="hidden" name="password2" value="<%= password %>" >
<input type="hidden" name="email" value="<%= username & "@mydomain.com" %>" >
<input type="hidden" name="realName" value="<%= fullname %>" >
<input type="hidden" name="location" value="Greece" >
<input type="hidden" name="attachSig" value="true" >
<input type="hidden" name="emailShow" value="False">
<input type="hidden" name="replyNotify" value="False">
<input type="hidden" name="pmNotify" value="False">   
<input type="hidden" name="ieEditor" value="True" >
<input type="hidden" name="Login" value="True" >
<input type="hidden" name="serverOffSet" value="+" >
<input type="hidden" name="serverOffSetHours" value="0" >
<input type="hidden" name="dateFormat" value="dd/mm/yy" >
<input type="hidden" name="mode" value="new" >
<input type="hidden" name="FPN" value="0" >
<input type="hidden" name="sessionID" value="<%= Session.SessionID %>" >
</form>
</body>

So the user gets registered in the forum as well. However, it takes some time to load the page in the iframe and the user might click on a link before the iframe actually loads. Do you have a better solution?

2. When the user wants to enter the forum, I present him with a button (so that the forum opens in a new window). The form contains the following code:

<form action="/forum/login_user.asp" method="post" id="form1" name="form1" target="_blank">
<input type="hidden" name="name" value="<%= Username %>" />
<input type="hidden" name="password" value="Password" %>" />
<input type="hidden" name="QUIK" value="true" />
<input type="hidden" name="NS" value="1" />
<input type="hidden" name="sessionID" value="<%= Session.SessionID %>" />
</form>

So, when the user clicks the button, he is logged in the forum.

Any suggestions or comments on the code above??

Jorgito

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.