Previous page :file name

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Previous page :file name

    I have couple of pages directing to the same action page.
    I need to get the coldfusion file name from where the form action originated.

    For example for TEST1.cfm and TEST2.cfm have the same action page TEST3.cfm.
    I need to find in TEST3.cfm if the previous page from where the form action
    took place was TEST1.cfm or TEST2.cfm.

    I tried a couple of functions but failed.
    Any idea.

    Thanks in advance.

    jjonney Guest

  2. Similar Questions and Discussions

    1. HELP! -- previous page in VB and ASP 3.0
      Hello all, I'm writing you because I have a question for you all: how can I capture the previous page from an ASP file? I need to add the URL...
    2. Previous and Next --- MSN Home Page
      Good Morning. On MSN.com there is cleaver little news box at the top of the page that automatically cycles through their three featured news...
    3. Navigation on detail page. (Next) - (Previous) Please help!!
      I have created a master page that is for my picture gallery I am using the thumbnail as a link to my detail page. On my detail page I am showing...
    4. Previous (and Next) Page Number don't work
      When I use Insert Special Character > Previous (or Next) Page Number the result is current page number. This happens in both InDesign 2.02 and...
    5. Accessing Values of local variables in previous page when using custom error page
      Hello, I have created a nice funky 500 - 100 error page which gives a nicer error; happily loops through and supplies querysting information, all...
  3. #2

    Default Re: Previous page :file name

    <CFIF ListLast(CGI.HTTP_REFERER,"/") EQ "Test1.cfm">
    JMGibson3 Guest

  4. #3

    Default Re: Previous page :file name

    Just be aware that some firewall software can block the CGI.HTTP_REFERER
    variable from being populated, so the value might be an empty string "". So
    make sure you handle that case. Another alternative is to pass the source page
    name or a simple number as a parameter to the action page.

    mxstu Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139