Expected end of statement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fran7
    New Member
    • Jul 2006
    • 229

    Expected end of statement

    Hi, I am tryig to set up a progress bar on an upload feature. I get the following error thrown up on this line.
    Expected end of statement on the R of response.write

    Code:
    <% Response.Write Request.ServerVariables("URL") Response.Write "?to=" & TimeO & "&PID=" & PID %>">
    I someone could say if there is anything obviously wrong that would be great.
    Thanks
    Richard
  • fran7
    New Member
    • Jul 2006
    • 229

    #2
    Hi, just to say I worked it out as.
    <% Response.Write Request.ServerV ariables("URL") %> <% Response.Write "?to=" & TimeO & "&PID=" & PID %>

    thanks richard

    Comment

    • GazMathias
      Recognized Expert New Member
      • Oct 2008
      • 228

      #3
      This would also work:

      Code:
      Response.Write Request.ServerVariables("URL") & "?to=" & TimeO & "&PID=" & PID
      Gaz

      Comment

      • fran7
        New Member
        • Jul 2006
        • 229

        #4
        Thanks Gaz that looks like it would work too
        Richard

        Comment

        Working...