Include files

Results 1 to 5 of 5

Thread: Include files

  1. #1
    Join Date
    Dec 1969
    Posts
    60

    Default Include files

    Hi, when i set an include file (&#060;!-- #include ....--&#062;)<BR>how can I use inside it some asp variables ?<BR>for example:<BR>&#060;!-- #include virtual="login/decryption.asp?id=1" --&#062;<BR>but the id=1 i dont want do be fixed but dynamic like:<BR>id=&#060;%=request.form("id")%&#062;<BR>< BR>can i use some other way?<BR>if i use this way:<BR>&#060;iframe id="datacons_left" src="login.asp?id=&#060;%=request.form("id")%&#062 ;"&#062; <BR>then everyone with a "view code" can see the id number...<BR>i want to hide it...

  2. #2
    Join Date
    Dec 1969
    Posts
    787

    Default FAQ: the nature of things...

    #includes are processed before any asp code so you can&#039;t include asp variables.

  3. #3
    Join Date
    Dec 1969
    Posts
    2,854

    Default RE: Include files

    &#060;!-- #include virtual="login/decryption.asp" --&#062;<BR><BR>Then inside the file "decryption.asp"<BR><BR>&#060;%id = request.form("id")%&#062;<BR><BR>and you have a variable called id<BR><BR>HTH.<BR>D.

  4. #4
    Join Date
    Dec 1969
    Posts
    787

    Default Oh - sorry

    missread your question :)<BR><BR>(busy day)


  5. #5
    Join Date
    Dec 1969
    Posts
    60

    Default RE: FAQ: the nature of things...

    thnx....and there is no other way to hide a variable passed by url?

Posting Permissions

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