-1
I want to put a link with the name and open a page like pop up.
<p>';
if($exibe['Nome1'] != NULL) {
echo '<p><b>Nome: </b>'.$exibe["Nome1"].'';
}'</p>
I want to show the Nome
and on it a link to open the pop up.
-1
I want to put a link with the name and open a page like pop up.
<p>';
if($exibe['Nome1'] != NULL) {
echo '<p><b>Nome: </b>'.$exibe["Nome1"].'';
}'</p>
I want to show the Nome
and on it a link to open the pop up.
4
Try to use it like this then:
<script language="JavaScript">
function abrir(URL) {
var width = 150;
var height = 250;
var left = 99;
var top = 99;
window.open(URL,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
</script>
<?php
echo '<p><a href="abrir("http://www.meusite.com.br");">'.$exibe["Nome1"].'</a></p>';
?>
4
Hi, in php I think it is not possible, but you can use javasript, follow the code:
<a href="#" onclick="window.open('http://www.suapagina.com', 'Titulo da Janela', 'STATUS=NO, TOOLBAR=NO, LOCATION=NO, DIRECTORIES=NO, RESISABLE=NO, SCROLLBARS=YES, TOP=10, LEFT=10, WIDTH=770, HEIGHT=400');">Clique para abrir a janela POP-up</a>
You can also use this site to generate the code: http://blogomaniag6.blogspot.com.br/
I hope that’s it! Hug!
0
You won’t get it with pure php. To open the popup, you’ll have to put a snippet of javascript code. Something like:
<p>
<a href="window.open('http://google.com', 'new-window');"><?php echo $exibe["Nome1"]; ?></a>
</p>
Browser other questions tagged php popup
You are not signed in. Login or sign up in order to post.