Print Page | Close Window

Create new users using ASP

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15432
Printed Date: 13 April 2026 at 5:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Create new users using ASP
Posted By: jorgito
Subject: Create new users using ASP
Date 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




Replies:
Posted By: dpyers
Date 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.


Posted By: jorgito
Date 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">
<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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net