Please Help i'm stuck

Results 1 to 3 of 3

Thread: Please Help i'm stuck

  1. #1
    Join Date
    Dec 1969

    Default Please Help i'm stuck

    i&#039;m having problems redirecting to my main page i&#039;ve tried this <BR>response.Redirect "form3index.asp" and response.Redirect ("http://localhost/form3index.asp")the error mess is something to do with http ? below is the code i am using any help would be great<BR><BR><BR>&#060;% <BR>&#039;search=replace(request.form("username"), "&#039;","&#039;&#039;") <BR><BR><BR>Dim objConn <BR>Set objConn = Server.CreateObject("ADODB.Connection") &#039;Connect to Database<BR><BR><BR>&#039;Create a DSN connection - state which database to connect to for data<BR>objConn.ConnectionString = "DSN=Cust" <BR>objConn.Open<BR><BR>Dim objRS <BR>Set objRS = Server.CreateObject("ADODB.Recordset") <BR><BR>Dim strSQL<BR>Dim strSQL1 <BR><BR>&#039;Assigning variables<BR>i = request.form ("hidden_id") <BR>u = request.form ("uname")<BR><BR>if request.form("submit") = "help" then <BR><BR>strSQL1 = "UPDATE Customer set User_Name = &#039;" & u & "&#039; where ID =" & i & ""<BR><BR>set objRS=objconn.execute(strSQL1) <BR><BR>response.Redirect "form3index.asp"<BR>response.write (strSQL1)<BR><BR>end if <BR><BR> <BR>if request.form("submit") &#060;&#062; "help" then <BR><BR>%&#062;

  2. #2
    Nambudri Guest

    Default RE: Please Help i'm stuck

    before redirecting to some have to clear the buffer and then only you can redirect.<BR>try this code<BR>Response.Buffer=true &#039;on top of the page<BR><BR>Response.Clear &#039;before redirection command<BR>

  3. #3
    Join Date
    Dec 1969

    Default THANKS


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts