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

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    14
    Please tell me what is wrong with this code and what I need to do to make it right...

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <? $url = urlencode("http://www.commission-junction.com/track/track.dll?AID=875045&PID=602255&TYPE=PN&URL=http%3A%2F%2Fwww%2Emcsports%2Ecom%2Fentry%2Epoint%3Ftarg et%3D293a7%26amp%3Bsource%3D CJ%5F4"); ?>
    <A onClick="parent.topFrame.location.href='top.php3?url=<? $url; ?>'" HREF="redirect.php3?url=<? print($url); ?>">

    CODE FOR TOP.PHP3

    ...
    <td align="left" valign="top" width="75%"><a href="<? print($url); ?>"><img src="http://www.frigidfluidco.com/digitalbait/remove_frame.gif" width=100 height=20 border=0 hspace="20" alt="Remove Frame"></a></td>
    ...
    [/code]

  2. #2
  3. film at 11
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Portland, OR
    Posts
    413
    Rep Power
    14
    could be you are urlencoding an already encoded url? just a guess.
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    14
    No that is not the problem. The problem is that $url is not being passed to top.php3. I cant figure out how to do it right. $url is being passed to the main frame but not the top frame (top.php3)
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    ON the onClick function you are not printing out the variable $url so it is never getting into the code.
  8. #5
  9. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    14
    Yeah but even when I do print($url); the url just gets printed to the source of redirect.php3.
    It looks something like this:

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

    <frame src="top.php3" scrolling="no" noresize http://www.rest-of-url-printed out>

    I cant figure out how to pass the value of $url so that I can put a link in top.php3 like

    <a href="<? print($url); ?>">Close Frame</a>

    Whenever the page loads with this links in it, I get a null value for the link (actually it defaults to the location of top.php3)
  10. #6
  11. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    this must do the trick

    <frame src="<?php echo top.php3?url=$url; ?>" scrolling="no" noresize http://www.rest-of-url-printed out>

    ------------------
    Until next time, I'll Remain!!
    Quote the Dokus:"NeverMore!"
  12. #7
  13. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    14
    Hey Dokus,
    Your idea did the trick except that your code will result in a parse error. It should looke like this:

    <frame src="top.php3?url=<?php echo($url); ?>" scrolling="no" noresize>

    Thanks.

Similar Threads

  1. My cgi scripts slowed way down (i'm an idiot)
    By giasen in forum Perl Programming
    Replies: 1
    Last Post: December 10th, 2003, 11:43 PM
  2. new idiot
    By just puppychu in forum Networking Help
    Replies: 5
    Last Post: December 7th, 2003, 04:19 PM
  3. Replies: 5
    Last Post: July 10th, 2003, 05:22 PM
  4. idiot question about nt server 4
    By wdewerff in forum Beginner Programming
    Replies: 0
    Last Post: July 23rd, 2000, 02:03 AM

IMN logo majestic logo threadwatch logo seochat tools logo