VBScript compilation 800a03f6 Expected 'End'

Printable View

  • 21st March 2013, 12:17 PM
    mukz
    Quote:

    Originally Posted by cooper549 View Post
    I've been rebuilding a web form from a previous version and basically copied the code exactly but merely changed the text boxes and database it accesses, however i keep getting this error after its been working for the past few days and i cant seem to put my finger on it.

    The error shown is always

    Microsoft VBScript compilation 800a03f6Expected 'End'/teachapp/form-footer.asp17

    The code for the page to which is refers to is below but i have a feeling that its on another page to which this footer file is included.

    If anyone can spot any errors within this and help me out it would be appreciated, the original code is not my design but we are using it to adapt into a second form for a different purpose.

    Code:

           


            <%if FormButton1 <> "" OR FormButton2 <> "" then%>
           


           






            <%if FormButton1 <> "" then%>
           
            <%end if%>


            <%if FormButton2 <> "" then%>
           
            <%end if%>


           


            <%end if%>


           


           


           
       

       








    <%if FormButton1 <> "" OR FormButton2 <> "" then%>







    <%if FormButton1 <> "" then%>

    <%end if%>


    <%if FormButton2 <> "" then%>

    <%end if%>



    <%end if%>


    <%end if%>












    Give that a try
  • 21st March 2013, 12:40 PM
    cooper549
    I get the same error on a different line,

    I have the greatest feeling that the error isn't on this page but maybe another one from which includes the footer. The problem happens when i click a button to move from default.asp to step-2.asp, i think the problem could be with one of those pages but it feels like i been staring at it that long i cant see anything wrong

    I've included pasts bins of the files where i have the trouble moving to and from. the funny thing is i have pages 'step-3/4' and these move back and forwards with no problems so im guessing it must be around one of these pages?

    Default.asp
    [ASP] default.asp - Pastebin.com

    step-2.asp
    [ASP] step-2.asp - Pastebin.com

    process.asp
    [ASP] process.asp - Pastebin.com
  • 21st March 2013, 01:03 PM
    mukz
    is this hosted online anywhere at the moment so that i can see it?
  • 21st March 2013, 01:05 PM
    cooper549
    Its not at the moment, I'm currently running it on a local server however if you bare with me i should be able to have it uploaded to our schools website pretty soon'ish and ill come back with a link
  • 21st March 2013, 01:08 PM
    mukz
    :) cheers, that error your getting is because theres a END IF function missing somewhere. but i cant tell using the pasties.
  • 21st March 2013, 01:10 PM
    cooper549
    i guessed it was, i've done a serious amount of googl'ing and sitting hear staring at it all and i think i've just become blind to any errors.
  • 21st March 2013, 01:12 PM
    mukz
    the same thing happens to me and then when you find the problem staring you in the face you just want to swear your head off
  • 21st March 2013, 01:39 PM
    cooper549
    Ok I've got the form online at here, the first page will require data in all the fields, but you can fill it full of anything ill just clear the database later.
  • 21st March 2013, 01:48 PM
    mukz
    hey cooper,

    i can see one error on the process.asp page.

    your calling for the if function twice but its only closed once at the end.

    Try adding another one at the end and see if that helps
  • 21st March 2013, 02:06 PM
    cooper549
    That's done the trick, looking at it so hard I've been blinded by it. Thanks very much :)
  • 21st March 2013, 02:08 PM
    mukz
    Glad to be of help :)

    By the way the form looks great.

    Wish i had the time to do something similar at my school