#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    63
    Rep Power
    15
    Try using urlencode().

    e.g.

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <? $url = "http://www.commission-junction.com/track/track.dll?AID=1110381&PID=602255&TYPE=PN&URL=http%3A%2F%2Fwww%2Ethesportsauthority%2Ecom%2Fentry%2Ep oint%3Ftarget%3D35de5%26amp%3Bsou rce%3DCJ%5F1"; ?>
    <A HREF="redirect.php?url=<? print(urlencode($url)); ?>">Link</A>
    [/code]
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,643
    Rep Power
    4492
    I think that is the urlencoded version...

    I don't see any reason why it would stop printing at the question mark. What if you just echo out $url, outside of the <frame> call, does it look correct?

    ---John Holmes...
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    15
    Krucifyx was good enough to enlighten me with the following code to accomplish what I need to do but I have a problem. The links that are being passed to $url are not being printed in their entirety b/c they are url encoded. The following is an example:

    <a href="http://www.commission-junction.com/track/track.dll?AID=1110381&PID=602255&TYPE=PN&URL=http%3A%2F%2Fwww%2Ethesportsauthority%2Ecom%2Fentry%2Ep oint%3Ftarget%3D35de5%26amp%3Bsou rce%3DCJ%5F1"

    The links are only being printed up to the question mark. What do I need to do to get the whole link to print? Thanks.
    ---------------------------------------------

    <html>
    <head>
    <title>Your Title</title>
    </head>

    <frameset rows="50,*" border="0" frameborder="no" framespacing="0">

    <frame src="top.php" scrolling="no" noresize>

    <frame src="<? print $url; ?>">

    </frameset>

    </html>

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    63
    Rep Power
    15
    I think the idea is to have the second frame point to that entire url. Only part of it is urlencoded.

Similar Threads

  1. External Links - Will my PHP Links Script hurt my Google Ranking
    By rick_b in forum Search Engine Optimization
    Replies: 5
    Last Post: April 11th, 2006, 03:21 AM
  2. feedback - span links = yuck
    By shreela in forum Dev Shed Lounge
    Replies: 2
    Last Post: January 28th, 2004, 11:59 PM
  3. Replies: 0
    Last Post: January 4th, 2004, 09:57 AM
  4. Change ip url to domain
    By crypt1c_c0d3 in forum Apache Development
    Replies: 2
    Last Post: January 2nd, 2004, 09:55 AM
  5. Order to display links
    By sweetpotatoe in forum PHP Development
    Replies: 14
    Last Post: December 7th, 2003, 10:23 PM

IMN logo majestic logo threadwatch logo seochat tools logo