Re: PHP & FRAMES Question
| From: | Miles Thompson | Date: | Thu, 15 Nov 2001 18:04:37 +0000 |
| Subject: | Re: PHP & FRAMES Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74757@lists.php.net to get a copy of this message | ||
Richard,
Thanks. I missed that completely.
Miles
At 09:47 AM 11/15/01 -0800, Richard S. Crawford wrote:
Try: printf("<a href=\"%s?member_id=%s\" target=\"sub_detl\">%s</a>\n",$target_url, $myrow["member_id"],$myrow["member_id"]); The target attribute must be outside of the quotes which contain the URL string, as such: < a href="http://my.url.com" target="my_frame" >blah< /a > The way you had it rendered the link as: < a href="http://my.ur.com target=my_fame" >blah< /a > which won't work. At 09:41 AM 11/15/2001, you wrote:This has probably been dealt with before, but I'm unable to get my link to open in the target frame, it always opens in the same frame. This line of code: printf("<a href=\" %s?member_id=%s target=sub_detl \" > %s </a> \n", $target_url, $myrow["member_id"], $myrow["member_id"]); typically expands, when the mouse pointer is placed over it, to: http://hostname/sitename/adm_sub_dtl.php?member_id=T0003 target=sub_detl This is the code for the page which creates the framesets .. I don't see any mysteries here, and it appears syntactically correct. Any suggestions will be welcome - Miles ThompsonSliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"