October 31st, 2000, 04:42 PM
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>
October 31st, 2000, 07:29 PM
could be you are urlencoding an already encoded url? just a guess.
October 31st, 2000, 08:23 PM
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)
October 31st, 2000, 09:25 PM
ON the onClick function you are not printing out the variable $url so it is never getting into the code.
October 31st, 2000, 10:50 PM
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)
November 1st, 2000, 10:29 AM
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!"
November 1st, 2000, 11:59 AM
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>