cooper549 Posted March 21, 2013 Posted March 21, 2013 (edited) 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. <%if FormButton1 <> "" OR FormButton2 <> "" then%> <%if FormButton1 <> "" then%> <%end if%> <%if FormButton2 <> "" then%> <%end if%> <%end if%> Edited March 21, 2013 by cooper549
mukz Posted March 21, 2013 Posted March 21, 2013 (edited) 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. <%if FormButton1 <> "" OR FormButton2 <> "" then%> <%if FormButton1 <> "" then%> <%end if%> <%if FormButton2 <> "" then%> <%end if%> <%end if%> Edited March 21, 2013 by mukz Missed a End If Function
cooper549 Posted March 21, 2013 Author Posted March 21, 2013 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
mukz Posted March 21, 2013 Posted March 21, 2013 is this hosted online anywhere at the moment so that i can see it?
cooper549 Posted March 21, 2013 Author Posted March 21, 2013 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
mukz Posted March 21, 2013 Posted March 21, 2013 cheers, that error your getting is because theres a END IF function missing somewhere. but i cant tell using the pasties.
cooper549 Posted March 21, 2013 Author Posted March 21, 2013 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.
mukz Posted March 21, 2013 Posted March 21, 2013 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
cooper549 Posted March 21, 2013 Author Posted March 21, 2013 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.
mukz Posted March 21, 2013 Posted March 21, 2013 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 1
cooper549 Posted March 21, 2013 Author Posted March 21, 2013 That's done the trick, looking at it so hard I've been blinded by it. Thanks very much
mukz Posted March 21, 2013 Posted March 21, 2013 Glad to be of help By the way the form looks great. Wish i had the time to do something similar at my school
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now