Forums
This topic is locked
Session Variables and Forms
Posted 29 May 2002 16:10:03
1
has voted
29 May 2002 16:10:03 Wil Turrin posted:
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.I've tried screwing around with session variables but I'm having some trouble
Replies
Replied 29 May 2002 17:18:31
29 May 2002 17:18:31 Viktor Farcic replied:
1)
Server Behaviors > Check New Username
2)
<%=(Request.Form("Username" & " is taken"%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.
I've tried screwing around with session variables but I'm having some trouble
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
Server Behaviors > Check New Username
2)
<%=(Request.Form("Username" & " is taken"%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.
I've tried screwing around with session variables but I'm having some trouble
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
Replied 29 May 2002 17:59:36
29 May 2002 17:59:36 Wil Turrin replied:
Hi
I get the username validation part, no worries.
I can't get the session variables to carry over to the next form though.
Can I send you a link to the code?
write me here if so
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
1)
Server Behaviors > Check New Username
2)
<%=(Request.Form("Username" & " is taken"%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.
I've tried screwing around with session variables but I'm having some trouble
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I get the username validation part, no worries.
I can't get the session variables to carry over to the next form though.
Can I send you a link to the code?
write me here if so
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
1)
Server Behaviors > Check New Username
2)
<%=(Request.Form("Username" & " is taken"%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.
I've tried screwing around with session variables but I'm having some trouble
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 29 May 2002 18:37:09
29 May 2002 18:37:09 Wil Turrin replied:
Okay,
Here's what I've figured out. I can move the session variables from one form to another, as long as I don't have the insert record server behaviour enabled.
Without insert record, I can't check the user name.
HELP!
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
1)
Server Behaviors > Check New Username
2)
<%=(Request.Form("Username" & " is taken"%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.
I've tried screwing around with session variables but I'm having some trouble
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Here's what I've figured out. I can move the session variables from one form to another, as long as I don't have the insert record server behaviour enabled.
Without insert record, I can't check the user name.
HELP!
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
1)
Server Behaviors > Check New Username
2)
<%=(Request.Form("Username" & " is taken"%>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I'm trying to make a password registration form that will do two things. 1) the page will check against the database to see if the username is in use and 2) retain the entered fields on the form and show a message that the username is taken.
I've tried screwing around with session variables but I'm having some trouble
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
TalkZone Manager
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 30 May 2002 09:13:51
30 May 2002 09:13:51 Viktor Farcic replied:
Send me the link.
Replied 01 Jun 2002 14:51:30
01 Jun 2002 14:51:30 Dave Clarke replied:
hi
<font size=4>
I had similar problem with retaining the form values, got round it like this.
set up your form on newuser.asp, then in the check new user behaviour dialogue box tell it to redirect if name is taken to newuser2.asp.
on newuser2.asp there is the message telling the user that the name is taken and a button for them to click on to try again, this button is linked to
onClick="history.go(-1);
this takes the user back in their browser history to newuser.asp with all the form fields filled in.
hope this helps
Dave</font id=size4>
Edited by - Davecl on 01 Jun 2002 14:52:39
<font size=4>
I had similar problem with retaining the form values, got round it like this.
set up your form on newuser.asp, then in the check new user behaviour dialogue box tell it to redirect if name is taken to newuser2.asp.
on newuser2.asp there is the message telling the user that the name is taken and a button for them to click on to try again, this button is linked to
onClick="history.go(-1);
this takes the user back in their browser history to newuser.asp with all the form fields filled in.
hope this helps
Dave</font id=size4>
Edited by - Davecl on 01 Jun 2002 14:52:39