Jump to content

Recommended Posts

hi, i have the following hyperlink but i want it to open a pop up window.

am still new to php and any help is welcome

 

 <?php Spacer(); ?>

              <TR><td align=center><img <?php echo createComIcon($root_path,'qkvw.gif','0','',FALSE) ?>></td>
                <TD vAlign=top ><FONT 
                  face="Verdana,Helvetica,Arial" size=2> <nobr>
                                 <a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDListEncounters ?></a>
                                  </nobr> </FONT></TD>
                </TR>

Link to comment
https://forums.phpfreaks.com/topic/50632-pop-up-window/
Share on other sites

<a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>" target="<?php echo $target ?>"><?php echo $LDListEncounters ?></a>

 

this is if you are using a dtd that has target= as a valid attribute for the a tag

 

OR (and preference) you can use a standards compliant code...

 

<a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>" onclick="window.open(this.href);" onkeypress="window.open(this.href);"><?php echo $LDListEncounters ?></a>

Link to comment
https://forums.phpfreaks.com/topic/50632-pop-up-window/#findComment-248876
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.