Problem with includes and cookies

Results 1 to 3 of 3

Thread: Problem with includes and cookies

  1. #1
    Join Date
    Dec 1969
    Posts
    16

    Default Problem with includes and cookies

    What is wrong with this - if cookie exists it should include the fool.asp file<BR>here is the code i have so far....<BR><BR>&#060;%<BR>IF Request.Cookies("cookie1") = "true" THEN<BR>&#060;!--#include file=fool.asp--&#062;<BR>END IF<BR>%&#062; ... does not work error is<BR><BR>Microsoft VBScript compilation error &#039 800a0400&#039 <BR><BR>Expected statement <BR><BR>/web/test-new/cookie/check.asp, line 3 <BR><BR>&#060;!--#include file=fool.asp--&#062;<BR>^<BR><BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    16

    Default RE: Problem with includes and cookies

    Try using fool.asp in qoute.<BR>&#060;!--#include file="fool.asp"--&#062;<BR><BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    31

    Default RE: Problem with includes and cookies

    because include directives are not part of VBScript<BR>you have to keep them outside of the &#060;% %&#062; tag<BR><BR>also depending on who you ask, include files may or may not be included before the script gets executed

Posting Permissions

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