|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have registered 2 domain name point to one site URL and URL
first-base.com is the main site, I would like to redirect URL to this page "http://www.first-base.com/item.info/index.htm" Can someone please give me a simple script and show me where to put it. I am not familiar to asp. Thank you in advance Benny Lee |
|
#2
|
|||
|
|||
|
Try This Out
<HTML>
<HEAD> <TITLE>Online Tracking System- ADLER</TITLE> <% if Request.Form("Submit1")="Go" then Set cnn = Server.CreateObject("ADODB.Connection") set rs = server.CreateObject("ADODB.RECORDSET") cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Inetpub\wwwroot\HHHHH.mdb" sql="select * from logintable where login='" & Request.Form("t1") &"' and password='"& Request.Form("t2") &"'" rs.Open sql,cnn if rs.eof = false then if request.form("username1")="admin" then server.transfer ("http ") end if Response.Redirect("http:// ") end if end if %> </BODY></HTML> |
|
#3
|
|||
|
|||
|
redirect
have an index.asp page on your www.firstbasetemplates.com domain
and have the following code... Code:
Response.Redirect("http://www.first-base.com/item.info/index.htm")
this should work fine if its a simple re-direct you want. Marc |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > I need a simple re-direct script please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|