| | |
form post error
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2007
Posts: 2
Reputation:
Solved Threads: 0
Hi
New to ASP
auth_in.asp
login.asp
The code is working fine but the user has to click the submit button twice for the form to work
Couldnt figure out where the problem is
New to ASP
auth_in.asp
ASP Syntax (Toggle Plain Text)
If (Mgr_Access = TRUE) And (Adv_Access = TRUE) Then %> <!-- #include file = "login_option.asp" --> <% END if
ASP Syntax (Toggle Plain Text)
<!-- MAIN BODY --> <p><b>Choose your Login Option</b></p> <form method="post" action=""> <input TYPE="radio" NAME="Login" VALUE="MG" CHECKED>Manager <input TYPE="radio" NAME="Login" VALUE="AD">Advisor </br> </br><input type="submit" value="Submit"> </form> <% IF Log = "MG" Then Session("sessNtID") = NtID 'set user's access level access_level = rsData("access_level") Session("sessAccess_level") = access_level 'set user's ID number user_id = rsData("user_id") Session("sessUser_id") = user_id ElseIf Log ="AD" Then Session("sessNtID") = NtID 'set user's access level access_level = asData("access_level") Session("sessAccess_level") = access_level 'set user's ID number user_id = asData("user_id") Session("sessUser_id") = user_id End If %> <!-- MAIN BODY END -->
The code is working fine but the user has to click the submit button twice for the form to work
Couldnt figure out where the problem is
•
•
Join Date: Sep 2007
Posts: 12
Reputation:
Solved Threads: 0
if u havent still got it.. message me on smart_saru@hotmail.com
=======================
=======================
•
•
•
•
Hi
New to ASP
auth_in.asp
login.aspASP Syntax (Toggle Plain Text)
If (Mgr_Access = TRUE) And (Adv_Access = TRUE) Then %> <!-- #include file = "login_option.asp" --> <% END if
ASP Syntax (Toggle Plain Text)
<!-- MAIN BODY --> <p><b>Choose your Login Option</b></p> <form method="post" action=""> <input TYPE="radio" NAME="Login" VALUE="MG" CHECKED>Manager <input TYPE="radio" NAME="Login" VALUE="AD">Advisor </br> </br><input type="submit" value="Submit"> </form> <% IF Log = "MG" Then Session("sessNtID") = NtID 'set user's access level access_level = rsData("access_level") Session("sessAccess_level") = access_level 'set user's ID number user_id = rsData("user_id") Session("sessUser_id") = user_id ElseIf Log ="AD" Then Session("sessNtID") = NtID 'set user's access level access_level = asData("access_level") Session("sessAccess_level") = access_level 'set user's ID number user_id = asData("user_id") Session("sessUser_id") = user_id End If %> <!-- MAIN BODY END -->
The code is working fine but the user has to click the submit button twice for the form to work
Couldnt figure out where the problem is
![]() |
Similar Threads
- Tecra 8100 POST Error Beeps (Troubleshooting Dead Machines)
- HTML Form post to PHP? (PHP)
- How Do We Make A Form Without Post Or Get (PHP)
- DRAM Timing causing POST error? (Troubleshooting Dead Machines)
- help connecting a form to a database.. error message (ASP.NET)
Other Threads in the ASP Forum
- Previous Thread: nehashri
- Next Thread: pleaaaaaaaaaase help me ,ASP exam
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





