I have the following form. It is a "passive" login. This form is in a sidebar of my site. The user logs in and all the action does is store a cookie, then return to the page you're on. It works fine except when the page the user is currently viewing when they decide to log on has a parameter attached to it: The "ref" input value in the form tells the action where to redirect to, but how do I append the parameter to the value? I'm relatively new at ASP and was wondering if anyone could help. I get errors if the parameter is not present, of course. I hope this makes sense. Thanks!
<form method="post" name="loginform" action="/login/login_action.asp">
<table>
<tr>
<td class="whiteletter">Username:
</td>
<td><input name="username" type="text" size="5" maxlength="50">
</td>
</tr>
<tr>
<td class="whiteletter">Password:
</td>
<td><input name="password" type="password" size="5" maxlength="50">
</td>
</tr>
<tr>
<td class="whiteletter">
<input style="background-color : white; font-size : 8pt" type="submit" value="GO">
</td>
</tr>
<input type="hidden" name="ref" value="<%=Request.ServerVariables("SCRIPT_NAME"%>">
</form>
<form method="post" name="loginform" action="/login/login_action.asp">
<table>
<tr>
<td class="whiteletter">Username:
</td>
<td><input name="username" type="text" size="5" maxlength="50">
</td>
</tr>
<tr>
<td class="whiteletter">Password:
</td>
<td><input name="password" type="password" size="5" maxlength="50">
</td>
</tr>
<tr>
<td class="whiteletter">
<input style="background-color : white; font-size : 8pt" type="submit" value="GO">
</td>
</tr>
<input type="hidden" name="ref" value="<%=Request.ServerVariables("SCRIPT_NAME"%>">
</form>