ahs10 Posted March 29, 2007 Share Posted March 29, 2007 I have my index.php page that contains an HTML link that is created by a PHP include. I would like this link to open in a new window. It would be super cool if I can define the height, width, and toolbar properties of the new window as well. Here's the line of code in my include that gives me the HTML link on my index page.... $strTemp.="<TD ".$pstrDataColumnParameters."><A HREF =\"IssueDetails.php?ID=" .$strTemp1. "\" >".$strTemp2. " < /A></TD>"; (I put a space in the closing of the anchor tag so that the forums didn't confuse it as the closing tag for an URL.) Thanks for taking the time. Any help, guidance, links, or simple hellos are greatly appreciated. Laters.....ahs10 Quote Link to comment https://forums.phpfreaks.com/topic/44798-solved-popup-window-for-html-link-created-with-an-include/ Share on other sites More sharing options...
MadTechie Posted March 29, 2007 Share Posted March 29, 2007 $strTemp="<A HREF ='IssueDetails.php?ID=" .$strTemp1. "\" target='_blank' >".$strTemp2. " </A>"; Quote Link to comment https://forums.phpfreaks.com/topic/44798-solved-popup-window-for-html-link-created-with-an-include/#findComment-217528 Share on other sites More sharing options...
ahs10 Posted March 29, 2007 Author Share Posted March 29, 2007 Thanks! Actually you put the target attribute in the wrong place (you put in the text that will appear as the link), but I altered it to this.... $strTemp.="<TD ".$pstrDataColumnParameters."><A TARGET=\"_blank\" HREF =\"IssueDetails.php?ID=" .$strTemp1. "\" >".$strTemp2. " < /A></TD>"; I don't know why I didn't think of that. For some reason, I had it in my head that I had to pass the link through a JS function. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/44798-solved-popup-window-for-html-link-created-with-an-include/#findComment-217538 Share on other sites More sharing options...
MadTechie Posted March 29, 2007 Share Posted March 29, 2007 Please click solved trust me to day may advise has been like Microsofts advice it maybe correct (attimes) but its also useless when formatted incorrectly Quote Link to comment https://forums.phpfreaks.com/topic/44798-solved-popup-window-for-html-link-created-with-an-include/#findComment-217542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.