Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom, pessoal sou iniciante em PHP, estou sempre vendo algumas dicas aqui no forum, mas estou com uns cursos aqui e estou vendo e fazendo ele eu mesmo vou corrigindo alguns erros que a pessoa que faz a video aula, mas vamus a minha duvida é a seguinde
Criei uma pagina chamada portfolio , dentro dela tem alguns links 1,2,3 que ao clicar nele deve ir até a pagina clicada, mas não é isso que acontece.
Ja na pagina Portfolio está mostrando a pagina PORTFOLIO mais a pagina 1 que só deveria ser mostrado ao ser clicado, espero que tenham entendido, qualquer coisa se precisarem posto print
Codigo da pagina Portfolio:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?PHP
include "css.php";
?>
<body>
<div id="fundo_paginas">
<div id= "geral_paginas">
<?PHP
include "menu.php"
?>
<div id="conteudo">
<div id="titulo_pg">Portfolio</div>
<div id="img_port">
<?
if (isset($_GET['funcao']) != "detalhes"){
?>
<img src="../Beeck/fotos/port_01.jpg" /><br />
<a href="?pg=portfolio&funcao=detalhes&id=img01" style="color:#FFFFFF">[ + Detalhes]</a>
</div>
<div id="img_port">
<img src="../Beeck/fotos/port_02.jpg" />
<a href="?pg=portfolio&funcao=detalhes&id=img02" style="color:#FFFFFF">[ + Detalhes]</a>
</div>
<div id="img_port">
<img src="../Beeck/fotos/port_03.jpg" />
<a href="?pg=portfolio&funcao=detalhes&id=img03" style="color:#FFFFFF">[ + Detalhes]</a>
</div>
<div id="img_port">
<img src="../Beeck/fotos/port_01.jpg" /><br />
<a href="?pg=portfolio&funcao=detalhes&id=img01" style="color:#FFFFFF">[ + Detalhes]</a>
</div>
<div id="img_port">
<img src="../Beeck/fotos/port_02.jpg" />
<a href="?pg=portfolio&funcao=detalhes&id=img02" style="color:#FFFFFF">[ + Detalhes]</a>
</div>
<div id="img_port">
<img src="../Beeck/fotos/port_03.jpg" />
<a href="?pg=portfolio&funcao=detalhes&id=img03" style="color:#FFFFFF">[ + Detalhes]</a>
</div>
<br /><BR />
<?
}
?>
<?
if (!isset($_GET['']) == "detalhes"){
?>
<strong>Dscrição: </strong> <br />
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<br />
<br />
<img src="../Beeck/fotos/port_01.jpg" />
<br />
<br />
<strong>www.site.com</strong>
<br />
<br />
<span style="font-size:18px; font-weight:bold;">Comentarios</span>
<br />
<br />
<div id="comentarios">
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div id="comentarios">
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div id="comentarios">
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div id="comentarios">
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<br />
<br />
<span style="font-size:18px; font-weight:bold">
Deixe sua mensagem:
</span>
<form id="form1" name="form1" method="post" action="funcao_comentarios.php?id_projeto=<? echo $id ?>">
<table width="200" border="0" cellpadding="3" cellspacing="3">
<tr>
<td width="99"><strong>Nome:</strong></td>
<td width="91"><span id="sprytextfield1">
<label>
<input name="nome" type="text" id="nome" size="40" />
</label>
<span class="textfieldRequiredMsg">Campo Obrigatório.</span></span></td>
</tr>
<tr>
<td><strong>Mensagem:</strong></td>
<td><span id="sprytextarea2">
<label><span id="sprytextarea1">
<textarea name="mensagem" id="mensagem" cols="45" rows="5"></textarea>
<span id="countsprytextarea1"> </span> <span class="textareaRequiredMsg">Campo Obrigatório.</span><span class="textareaMaxCharsMsg">Máximo de caracteres 255.</span></span></label>
</span></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="button" id="button" value="Enviar" /></td>
</tr>
</table>
</form>
<center><a href="javascript:history.back();" style="color:#FFFFFF"><strong>VOLTAR</strong></a></center>
<BR />
<br />
<?
}
?>
</div><!--conteudo -->
<div style="clear:both"> </div>
</div><!--geral pagina -->
<div style="clear:both"> </div>
</div> <!--fudno pagina -->
</body>
</html>
Espero que tenham entendido minha duvida
abraço
Se for possivel me indicar algum curso em video aulas
ou o manual do PHP ficarei agradecido vi aqui no forum o manual do PHP em portugues, baixei mas os links estavão todos offs
:\
:D
Carregando comentários...