Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Issues With URL

    Hi everyone,

    I'm making a small site where users can make a profile. I know how to input
    data to the database and i know how to use a template to load the specific
    information into the page if a user clicks a link to that particular page BUT
    my problem lays in the URL. Basically I need to be able to load a users profile
    into the template if someone types in the address bar of a browser for example
    [url]www.something.com/some_user_profile[/url] .

    So my question is, how can I make my application know that the url typed in
    the address bar will load the specific file into the template?

    I really need help on this, so any advice is much appreciated.

    Thanks in advance!!!

    Confused! Guest

  2. Similar Questions and Discussions

    1. CSS Issues
      For our site, we use a custom tag that defines the header and footer for the page. In the header the stylesheets are called. The problem is, in...
    2. IE Issues
      Hello, This is a little off topic but I do need some help. I have had IE 6 for about a month now (just got a new computer in June and have been...
    3. FH 9 issues
      Can you add a border to a photo in FH9 once it's inserted into a project...or do you have to go back to the original in another app (FW 4) and add...
    4. [PHP-DEV] ZTS issues
      From: Michael Sisolak Here's the updated patch for that stuff http://www.ctindustries.net/patches/zts-php5-20031120.diff.txt Also fixes an...
    5. XP PRO has WEP issues
      Kerby Krien wrote: Disable Wireless Zero Configuration service. Enter the WEP passcode and key cyphers manually. Q
  3. #2

    Default Re: Issues With URL

    Usually you would call a page in this form:
    [url]www.something.com/showprofile.cfm?profile=some_user[/url]

    Your ColdFusion program will have a variable called URL.profile that will have
    the value "some_user".

    You could also call it in this form:
    [url]www.something.com/showprofile.cfm/some_user[/url]

    The CGI variable PATH_INFO will have the value "/showprofile.cfm/some_user".
    You can treat this as a list with "/" delimeters and get the last element of
    the list as your query string.

    Using the path also has limitations - I believe you can only pass a simple
    value. You'd have to experiment.

    -Paul


    dempster Guest

  4. #3

    Default Re: Issues With URL

    Hi,

    Well, that kind of made a little sense but I think I'll need a further example
    if it's at all possible. Sorry for the annoyance!! If you or anyone else for
    that matter understand what I'm going on about it'd be good if you could give
    further light on the matter.

    Thank you for replying and thanks alot more in advance!! Cheers.

    Confused! Guest

  5. #4

    Default Re: Issues With URL

    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=2addd247[/url]
    [url]http://www.doughughes.net/index.cfm/page-blogLink/entryId-37[/url]

    Fernis 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