After you submit the page, do a response.write on the
session to ensure that it is getting stored.
Send over the pages. It would be much easier looking
at them all at once instead of trying to pick through
them one at a time.
Mark
--- k4t_9283 <[EMAIL PROTECTED]> wrote:
> I declare the variable 'username' in the
> registration page. And I
> have just double-checked the database and there are
> definately values
> in there.
>
> This is the register page:
>
>
====================================================================
>
> <%
> newusername = TRIM( Request( "newusername" ) )
> Session("username") = newusername
> newpassword = TRIM( Request( "newpassword" ) )
> user_id = TRIM( Request( "userID" ) )
> title = TRIM( Request( "title" ) )
> firstName = TRIM( Request( "firstname" ) )
> surname = TRIM( Request( "surname" ) )
> gender = TRIM( Request( "gender" ) )
> email = TRIM( Request( "email" ) )
> telephone = TRIM( Request( "telephone" ) )
> street = TRIM( Request( "street" ) )
> city = TRIM( Request( "city" ) )
> county = TRIM( Request( "county" ) )
> postcode = TRIM( Request( "postcode" ) )
> country = TRIM( Request( "country" ) )
> cctype = Request( "cctype" )
> ccnumber = TRIM( Request( "ccnumber" ) )
> ccexpires = TRIM( Request( "ccexpires" ) )
> ccname = TRIM( Request( "ccname" ) )
>
> submitpage = Request.ServerVariables( "SCRIPT_NAME"
> )
> %>
>
> <html>
> <head><title>Register</title></head>
> <body bgcolor="white">
>
> <center>
>
> <table width=975 border=0 cellspacing=0
> cellpadding=0>
> <tr>
> <td>
> <img src="bookworms.gif" alt="Bookworms Bookshop
> Logo">
> </td>
> </tr>
> </table>
> <p>
>
> <table width="500" border=0
> cellpadding=4 cellspacing=0>
>
> <tr>
> <td colspan=2 bgcolor="lightgreen">
> <font color="darkgreen" face="Arial">
> <b>Existing Customers - Login</b>
> </font>
> </td>
> </tr>
>
> <tr>
> <td colspan=2>
>
> <form method="post" action="<%=submitpage%>">
> <input name="login" type="hidden" value="1">
> <input name="pid" type="hidden"
> value="<%=productID%>">
> <font face="Arial" size="2">
> Please enter your username and password:
> </font>
> </td>
> </tr>
>
> <tr>
> <td>
> <font face="Arial" size="2">
> <p><b>Username:</b>
> </td>
> <td>
> <input name="username" size="20"></b>
> </td>
> </tr>
>
> <tr>
> <td>
> <font face="Arial" size="2">
> <br><b>Password:</b>
> </font>
> </td>
> <td>
> <input name="password" size="20"></b>
> </td>
> </tr>
> <tr>
> <td colspan=2 align="right">
> <input type="submit" value="Login">
> </font>
> </td>
> </tr>
> </form>
> </table>
>
> <p>
> <p>
> <p>
> <p>
> <table width="500" border=0
> cellpadding=4 cellspacing=0>
> <tr>
> <td bgcolor="lightgreen" colspan=2>
> <font color="darkgreen" face="Arial">
> <b>New Customer Registration Information</b>
> </font>
> </td>
> </tr>
>
> <tr>
> <td colspan=2>
> <form method="post" action="<%=submitpage%>">
> <input name="register" type="hidden" value="1">
> <input name="pid" type="hidden"
> value="<%=productID%>">
> <font face="Arial" size="2">
> If you are a new user, please register by
> completing the following
> form:
> <p>
> </font>
> </td>
> </tr>
>
> <tr>
> <td colspan=2>
> <font face="Arial" size="2" color="darkgreen">
> <p><b>Login Information:</b></font>
> </td>
> </tr>
> <tr>
> <td colspan=2>
> <font face="Arial" size="2">
> Please select a username and password:
> </td>
> </tr>
>
> <tr>
> <td>
> <font face="Arial" size="2">
> <b>Username:</b>
> </font>
> </td>
> <td>
> <input name="newusername" size=20 maxlength=20
> value="<%=Server.HTMLEncode( newusername )%>">
> </td>
> </tr>
>
> <tr>
> <td>
> <font face="Arial" size="2">
> <b>Password:</b>
> </td>
> <td>
> <input name="newpassword" size=20 maxlength=20
> value="<%=server.HTMLEncode( newpassword )%>">
> </td>
> </tr>
>
> <tr>
> <td colspan=2>
> <font face="Arial" size="2" color="darkgreen">
> <p>
> <b>Personal Information:</b>
> </font>
> </td>
> </tr>
>
> <tr>
> <td>
> <font face="Arial" size="2">
> <b>Title:</b>
> </font>
> </td>
> <td>
> <input name="title" size=10 maxlength=10
> value="<%=Server.HTMLEncode( user_title )%>">
> </td>
> </tr>
>
> <tr>
> <td>
> <font face="Arial" size="2">
> <b>First Name:</b>
> </td>
> <td>
> <input name="firstname" size=30 maxlength=30
> value="<%=Server.HTMLEncode( user_firstName
> )%>">
> </td>
>
=== message truncated ===
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/