Forums
This topic is locked
sever question
04 Jul 2005 22:43:02 shola law posted:
Helo good pple of the forum,i am just getting into the sever side side of things with dreamweaver and ASP. I've created a login form to a secure portion of a site. in that secure portion however, there will be a form that the visitor would fill that will be sent to a database.
What i am having problems with is the how i 'll get to current login information such as the visitor name and password wpuld be automatically mapped to the current form he or she is filling, so that there won't need for the visitor to fill his or her username or password again.
Pls i am quite new to this and your assistance would be greatlyappreciated.
phebsix
If u think u can u can
Replies
Replied 06 Jul 2005 20:03:05
06 Jul 2005 20:03:05 Rene Bandsma replied:
You can easily create a User Login system with the standard server behaviours that comes with Dreamweaver and the ASP server model. You can trigger the user with:
<pre id=code><font face=courier size=2 id=code>
<%=Session("MM_Username"
%>
</font id=code></pre id=code>
You can put the username in a hidden field when the user is posting something but you can also filter a recordset by a username with this Session Variabele.
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
<pre id=code><font face=courier size=2 id=code>
<%=Session("MM_Username"

</font id=code></pre id=code>
You can put the username in a hidden field when the user is posting something but you can also filter a recordset by a username with this Session Variabele.
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
Replied 09 Jul 2005 01:15:55
09 Jul 2005 01:15:55 paul durbar replied:
You'll need to load all the info about the user that you need into session vars following a sucessfull login. You can query the database once a user submits their username/password and if they've logged in ok then create session vars for their name, address email etc Then to populate your form, all you need to do is something like:
<input name="UserEmail" type="text" value="<% = Session("UsersName"
%>">
Or alternatively, just save yourself a ton of time and click the link in my signature <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
D2 Sitelock v3.0
Sell and securely deliver downloads, paid subscription systems and website membership areas:
www.d2computing.co.uk/sitelock.htm
<input name="UserEmail" type="text" value="<% = Session("UsersName"

Or alternatively, just save yourself a ton of time and click the link in my signature <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
D2 Sitelock v3.0
Sell and securely deliver downloads, paid subscription systems and website membership areas:
www.d2computing.co.uk/sitelock.htm