(PHP)Help plz! What's the problem with this url???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Onehelluvanoize
    Registered User
    • Apr 2002
    • 61

    #1

    (PHP)Help plz! What's the problem with this url???

    Hi! I am using cj-ultra on my site.
    Now I want to link the following url: galleries2.partnerclicks.nl/cgi-bin/dgals.cgi?username=ikwilsex&gal=interracialsex5.ht ml

    When i put that in the adresbar of IE everything works fine.
    As soon as I list the link in combination with CJ-ultra the link screws up:

    http://www.ikwilsexonline.nu/out.php...acialsex5.html

    Now when i copy and paste that link into the browser somehow the script just skips the part &gal=interracialsex5.html
    So somehow the &gal screws up cjultra.

    Any php-guru here who can help me out?
    .
  • Libertine
    sex dwarf
    • May 2002
    • 17860

    #2
    First of all, you might want to add a ? after out.php
    That's your first mistake.


    The second is you're linking to an unencoded url with querystring.
    The problem with that is that the variables in the partnerclicks url are given to the out.php, rather than to the partnerclicks site.


    Een oplossing?
    Kijk eens op het awm board, sowieso de eerste plaats waar Nederlandse webmasters moeten kijken voor zulke dingen.
    /(bb|[^b]{2})/

    Comment

    • Onehelluvanoize
      Registered User
      • Apr 2002
      • 61

      #3
      Yup, just registerd at the Dutch AWM. Have to wait for approval before I can pop a question over there and even then I'm not sure they have the anwer.

      I included the ? in it but still no use. Indeed, I send the arguments to the wrong part of the url but no idea on how to change that... Anyone?
      .

      Comment

      • qdtobbe
        Confirmed User
        • Apr 2002
        • 1688

        #4
        NOTHING!
        Trade Hardlinks at Linkspun | Domains For Sale

        Comment

        • Cogitator
          Confirmed User
          • Feb 2002
          • 672

          #5
          If the URL is being sent as a parameter, you need to URLEncode the string. The "&" you say is being ignored is actually indicating another parameter being sent to out.phps. You need to use "%26" everywhere you have an "&" character. This way the whole string will be passed to the URL parameter. If your link is generated by code, you can use the "urlencode()" function in PHP when generating the URL string. (See http://www.php.net/manual/en/function.urlencode.php)
          Hope this helps.
          - this space intentionally left blank -

          Comment

          Working...