Results 1 to 8 of 8

Thread: Code a weblink ?

  1. #1
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Code a weblink ?

    Hi.

    I would appreciate if one of you guys can help me out on how to encode a link so that if it is clicked by someone and gets directed to a certain website and decides to make contact from there that it is known from where he clicked that link.
    As I heared this is possible with Cold Fusion but I never used it.
    Are there any other ways to do that?
    Please someone put me on the right track here.

    Thanks in advance,
    Cheng

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It's possible with any server-side language, but we can't help you unless you tell us which you're using. If you're not sure, ask your host what they support.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Hi Twey.

    Thanks for the quick reply.
    The site is hosted with HostMySite www.hostmysite.com and the hosting plan called Linux Builder Plus which supports PHP.
    What "Server-Side Language" do I need?
    If it's not included in the plan than I have to change for something more advanced.

    Thanks again,
    Cheng

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    PHP would be fine.

    Probably just using this will work:

    <?php echo $_SERVER['REFERER_URI']; ?>
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    PHP is your server-side language, and if you post in the PHP forum I'm sure someone can help you.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Jan 2006
    Posts
    234
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    .....thanks to both of you.
    Just one thing before I jump to the PHP forum section.
    I said that my web host supports PHP but the website I'm talking about is HTML not PHP is this ok or must the whole website be in PHP to do what I want to do...?...
    Cheng

  7. #7
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    you can create as many / few pages as you want in any/all programming languages, however its better practice to only use 1 server-side language (ASP/PHP) but theoretically you could use both languages, it would just be a nightmare to debug / make any sense of...

    the short answer yes, its okay.

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You will need a .php extension on the page (or a setting on the server that makes .htm act as php).
    However, .htm(l) pages can link to .php and vice versa with no problem, for the site overall. For consistency, I prefer one extension on all files. But that is your choice.

    If what I posted above is enough, and it may be, no need to start a new thread. (Note that Twey posted just one minute after I did, probably not seeing that answer.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •