Professional Web Applications Themes

The variable won't pass - Coldfusion - Advanced Techniques

The problem I am having is with setting a variable which would hold an id and it would be used on multiple pages. The variable should change when you change the selection on the forms menu just about it but it wont even initially set it. The navigatin page which is where this is on, is an include and is run on everypage. Also I've tried passing it up into the url, but that doesn't work, and I've tried onchanges for the menu so that onchange it puts the new id in the url, but again it said my form ...

  1. #1

    Default The variable won't pass

    The problem I am having is with setting a variable which would hold an id and
    it would be used on multiple pages. The variable should change when you change
    the selection on the forms menu just about it but it wont even initially set
    it. The navigatin page which is where this is on, is an include and is run on
    everypage. Also I've tried passing it up into the url, but that doesn't work,
    and I've tried onchanges for the menu so that onchange it puts the new id in
    the url, but again it said my form item was not defined.

    Anybody help?

    weswhite7 Guest

  2. #2

    Default Re: The variable won't pass

    I can tell you that for varibles to be passed to a include page you must use
    Attributes in the include statment.

    For varibles to be passed back to the parent page from the include page you
    must set Caller varibles from the include page.

    Let me know if this helps you.

    Vbprog40 Guest

  3. #3

    Default Re: The variable won't pass

    actually whats funny is that about 10 minutes after i posted this, i pretty
    much found the most simplistic way by including a "Go" button, so on
    form.submit reprocess the url with cflocation url and add the variable

    weswhite7 Guest

Similar Threads

  1. How to pass a variable to a second page
    By chill84 in forum Macromedia ColdFusion
    Replies: 5
    Last Post: May 18th, 04:49 AM
  2. How to pass a variable to .t file
    By Rajesh Dorairajan in forum PERL Beginners
    Replies: 3
    Last Post: November 4th, 07:14 PM
  3. [PHP] Still can't pass variable through url.. whoops
    By Joe Harman in forum PHP Development
    Replies: 0
    Last Post: August 8th, 07:01 AM
  4. [PHP] Still can't pass variable through url
    By Joe Harman in forum PHP Development
    Replies: 1
    Last Post: August 8th, 06:58 AM
  5. Can't Pass variable to other page
    By Kae Verens in forum PHP Development
    Replies: 0
    Last Post: August 7th, 10:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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