473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

whether i try to redirect from a html page to asp page or an asp to an asp page in IE

I think the there is error in the post method that is not working. I am trying to open another asp page with an asp page login.asp whose code is

Expand|Select|Wrap|Line Numbers
  1. <html> <head><title>Helpers Management Desk</title></head> <marquee bgcolor="light red" behavior="scroll" loop="150" scrollamount="15"><font face="" color=white><h1>Helpers Management Desk</h></font></marquee> <body bgcolor=yellow > <form id="form1" method="POST" action="http://bytes.com/log.asp"> <center><table></center> <tr style="margin-top:10px;"></tr> <td align=right>Enter  your UserName:</td> <td align=left style="margin-top;20px;"><input type="text" name="username" size="20"><BR></td> </tr> <tr style="margin-top:40px;"></tr> <td align=right>Enter your Password:</td> <td align=left><input type="text" name="password" size="20" colspan=10><BR></td> </tr> </table> <center align=right><input type="Submit" value="Login"></center> </form> </body> </html>
  2.  
  3. and the code of the redirected page log.asp is as follows:-
  4. <html> <head> <title>Sitting Plan</title> </head> <body bgcolor="#FF9933" background="lblue161.jpg"> <%
  5.  
  6. Set lv_flow = Server.CreateObject("ADODB.Connection")
  7. lv_flow.Open "DSN=nikhil;Description=;Server=local;DATABASE=nikhil" 
  8. Set cmd_flow = Server.CreateObject("ADODB.Command")
  9. Set rs_flow = Server.CreateObject("ADODB.Recordset")
  10. cmd_flow.CommandText = "SELECT user_name,pass,type from help"
  11. cmd_flow.CommandType = 1
  12. 'Set cmd_flow.Connection = lv_flow
  13. 'rs_flow.Open cmd_flow, ,1,2
  14. user=request.form("username")
  15. pass=request.form("password")
  16. dim f=0
  17.  
  18.  
  19.              while not rs_flow.eof
  20.                    if rs_flow("user_name") <> user or rs_flow("pass") <> pass then
  21.                     response.write("Login Error")
  22.                     rs_flow.movenext
  23.  
  24.                 wend
  25.                 end if
  26.  
  27.  
  28. if type="Admin" then
  29.  
  30.         Response.write 100
  31.              else
  32.      Response.write 101
  33.      end if 
  34.      %> </body> </html>

Please friends tell me the programming error that persits and I am unable to solve. HELP!!

Thanks in advance
Aug 30 '14 #1
0 1316

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steve Mauldin | last post by:
This is a standard ASP application that has several pages at the root withthe global.asa. I set a session variable session("accountid") = "123456" within an asp page and then response.redirect to...
3
by: Bruce W..1 | last post by:
Is it a Postback if you do a Response.Redirect to the same page? Thanks for your help.
7
by: savvy | last post by:
I able to redirect the user to the index.aspx page after every successful login, but I dont want certain pages outside the folder to have a access to general public. So if they click that...
1
by: steggun | last post by:
How can I always redirect any user to the "home" page? Basically, a user could enter a full URL in the address bar or bookmark a specific page so that they can go directly to that page. However,...
10
by: mjahabarsadiq | last post by:
I would like to reload the page when it is redirected by the browser's Back or Forward button. I tried the following but it does not works. <link rel="prev" href="url"> <link rel="next"...
0
by: kramprasad | last post by:
hi friends, In asp how to redirect to a login page when session is loss or expire.
8
by: Darrel | last post by:
I'm helping convert a 300+ page .html site into an ASP.net site. The client wants to set up 301 redirects for all of the old html pages. I've used ISAPI for this type of thing in the past, as it...
5
by: humair77 | last post by:
I need to redirect to a thankyou page after a user submit form. I am new in PHP and trying to use header("Location: thankyou.html"); but it is going to thankyou page. Everything else seems to be...
1
by: digituf | last post by:
can someone help me by telling me why is that whenever i click the javascript calendar, it redirect me to another page eventhough i still do not finish fill the form? here is the code: ...
0
by: phpchild | last post by:
<?php $a; if($a) { echo "want to use header to redirect"; } ?> <html> <form action="aa.php" method="post">
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.