G.Soares 0 Denunciar post Postado Maio 9, 2009 Olá, eu fiz um site e peguei um código pronto e adaptei Já mandei pro FTP mais tá dando erro na linha 292 Parse error: syntax error, unexpected T_VARIABLE in /home/a4368693/public_html/index.php-p=fale.php on line 292 Lá vai o documento: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?PHP $path = "."; if(!$PHP_SELF){ if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");} if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");} if($HTTP_COOKIE_VARS) {extract($HTTP_COOKIE_VARS, EXTR_PREFIX_SAME, "cookie_");} if($HTTP_ENV_VARS) {extract($HTTP_ENV_VARS, EXTR_PREFIX_SAME, "env_");} } if($PHP_SELF == ""){ $PHP_SELF = $HTTP_SERVER_VARS[PHP_SELF]; } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script> imagens = new Array(); //preencha com as imagens que vão aparecer imagens[0]="banners/banner1.gif"; imagens[1]="banners/banner2.gif"; imagens[2]="banners/banner3.gif"; imagens[3]="banners/banner4.gif"; imagens[4]="banners/banner5.gif"; imagens[5]="banners/banner6.gif"; imagens[6]="banners/banner7.gif"; imagens[7]="banners/banner8.gif"; imagens[8]="banners/banner9.gif"; imagens[9]="banners/banner10.gif"; imagens[10]="banners/banner11.gif"; //Preencha com os respectivos links links = new Array(); links[0] = ""; links[1] = ""; links[2] = ""; links[3] = ""; links[4] = ""; links[5] = ""; links[6] = ""; links[7] = ""; links[8] = ""; links[9] = ""; links[10] = ""; i=0; function troca(){ if (i==imagens.length){ i=0; } document.getElementById('img1').src=imagens[i]; document.getElementById('banner').href=links[i]; i++; }//by andrealoisio </script> <!-- TemplateBeginEditable name="doctitle" --> <title>Revolution Sims - The Sims 3</title> <!-- TemplateEndEditable --> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <style type="text/css"> <!-- a:link {text-decoration: none; color:#000}; a:hover {text-decoration: none; color:#000}; a:visited {text-decoration: none; color: #000}; a:active { text-decoration:underline; color: #000; } body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #707070; margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */ padding: 0; text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */ color: #000000; padding-top: 5px; } .thrColFixHdr #container { width: 780px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */ background: #FFFFFF; margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */ border: 0; text-align: left; /* this overrides the text-align: center on the body element. */ } .thrColFixHdr #header { background: #707070; padding: 0; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */ } .thrColFixHdr #header h1 { margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */ padding: 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */ } .thrColFixHdr #sidebar1 { float: left; /* since this element is floated, a width must be given */ width: 150px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */ padding-left: 8px; /* padding keeps the content of the div away from the edges */ border-left: 3px solid #0093d7; font-weight: bold; font-size: 10px; } .thrColFixHdr #sidebar2 { float: right; /* since this element is floated, a width must be given */ width: 160px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */ background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */ padding-right: 8px; /* padding keeps the content of the div away from the edges */ border-right: 3px solid #0093d7; } .thrColFixHdr #mainContent { margin: 0 160px; /* the right and left margins on this div element creates the two outer columns on the sides of the page. No matter how much content the sidebar divs contain, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the sidebar spaces when the content in each sidebar ends. */ padding: 0 10px; /* remember that padding is the space inside the div box and margin is the space outside the div box */ } .thrColFixHdr #footer { padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear above it. */ background:#DDDDDD; } .thrColFixHdr #footer p { margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */ padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */ } .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ float: right; margin-left: 8px; } .fltlft { /* this class can be used to float an element left in your page */ float: left; margin-right: 8px; } .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */ clear:both; height:0; font-size: 1px; line-height: 0px; } #sidebar1 { font-family: Calibri; font-size: 9px; font-weight: bold; } link { color: #000; } .menu { font-family: "Kozuka Gothic Pro B"; font-size: 10px; font-weight: bolder; color: #000; } .copyright { font-family: "Kozuka Gothic Pro B"; font-size: x-small; font-weight: bold; color: #000; } .copyright { font-size: xx-small; } .thrColFixHdr #container #footer .copyright .copyright .copyright { font-size: 8px; } link { font-style: normal; font-weight: normal; color: #000; } --> </style><!--[if IE 5]> <style type="text/css"> /* place css box model fixes for IE 5* in this conditional comment */ .thrColFixHdr #sidebar1 { width: 180px; } .thrColFixHdr #sidebar2 { width: 190px; } </style> <![endif]--><!--[if IE]> <style type="text/css"> /* place css fixes for all versions of IE in this conditional comment */ .thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; } .thrColFixHdr #mainContent { zoom: 1; } /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */ </style> <![endif]--></head> <body class="thrColFixHdr"> <div id="container"> <div id="header"> <h1><img src="logo.png" width="780" height="250" longdesc="logo.png" /></h1> <!-- end #header --></div> <div id="sidebar1" class="#sidebar1" > <h3><img src="button_ts3.png" width="150" height="40" longdesc="button_ts3.png" /></h3> <p class="menu"><a href="index.php-p=ojogo.php">•O jogo</a><br /> <a href="index.php-p=tutoriais.php">Tutoriais</a><br /> <a href="index.php-p=codigos.php">Códigos</a> <br /> <a href="index.php-p=lancamentos.php">Lançamentos</a> <p><img src="button_midia.png" width="150" height="40" longdesc="button_media.png" /></p> <a href="index.php-p=audio.php"> <span class="menu">Áudio<br /> </span></a><span class="menu"><a href="index.php-p=imagens.php">Screenshots</a><br /> <a href="index.php-p=wallpapers.php">Wallpapers</a><br /> <a href="index.php-p=videos.php">Vídeos</a></span> <p class="menu"><img src="button_consoles.png" width="150" height="40" longdesc="button_consoles.png" /></p> <p class="menu"><a href="index.php-p=wii.php">Nitendo Wii</a><br /> <a href="index.php-p=iphone.php">iPhone</a></p> <p class="menu"><img src="button_sobre.png" width="150" height="40" longdesc="button_sobre.png" /></p> <p class="menu"><a href="index.php-p=criador.php">Criador</a><br /> <a href="index.php-p=fale.php">Fale Conosco</a></p> <img src="endmenu_sb1.png" width="150" height="25" longdesc="endmenu_sb1.png" /><br /> <!-- end #sidebar1 --> </div> <div id="sidebar2"> <h3><img src="button_search.png" width="150" height="40" longdesc="button_search.png" /></h3> <!-- The Quick Search Form --> <form action="admin/search.php" method="post" class="menu"> <input type="hidden" name="dosearch" value="yes" /> <input type="text" name="story" size="15" /> <input type="image" src="button_search_ok.png" alt="Pesquisar" border="0" /> <input type="hidden" name="do" value="search" /> </form> <!-- End of the Search Form --> <p><img src="button_parceiros.png" width="150" height="40" longdesc="button_parceiros.png" /></p> <center><a href="http://www.studiosims.byethost5.com"><img src="banners/banner_studiosims.gif" alt="Studio Sims" border="0"></a></center> <p><img src="button_publicidade.png" width="150" height="40" longdesc="button_publicidade.png" /></p> <center> <script type='text/javascript'> <!-- google_ad_client = 'pub-7375805052464860'; google_ad_width = 120; google_ad_height = 240; google_ad_format = '120x240_as'; google_ad_channel =''; google_page_url = document.location; google_color_border = 'FFFFFF'; google_color_bg = 'FFFFFF'; google_color_link = '3F3F3F'; google_color_url = '008000'; google_color_text = '3F3F3F'; //--> </script> <script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'> </script> </center> <img src="endmenu_sb2.png" width="150" height="25" longdesc="endmenu_sb2.png" /><br> <!-- end #sidebar2 --></div> <div id="mainContent"> <p align="center" class="menu" style="font-size:24px">Fale Conosco</p> <p class="menu" style="font-size:10px;">Quer enviar uma mensagem a equipe? Preencha o formulário a seguir. No assunto explique bem o que você quer (Ex.: Enviar mídia, proposta de parceria, sugestão e etc.)</p> <?php // Assunto que você receberá em seu e-mail! $titulo = "Mensagem de $nome - Revolution Sims - Fale Conosco"; // Assunto do e-mail auto resposta que o visitante receberá! $assunto_r = "$nome, recebemos sua mensagem de contato!"; // Endereço do seu site que aparecerá no e-mail auto resposta! $url_site = "Revolution Sims - The Sims 3"; // Nome da assinatura que aparecerá no e-mail auto resposta! $nome_ass = "Equipe Revolution Sims"; // Mensagem que será enviada no e-mail auto resposta! $resposta = "Obrigado $nome por ter entrado em contato conosco.\nEm breve você receberá nosso contato.\n Este é um e-mail automático, favor não respondê-lo! Atenciosamente, $nome_ass $url_site"; $nome = $_POST["nome"]; //pegando a variavel nome $email = $_POST["email"]; // pegando a variavel email $assunto = $_POST["assunto"]; $ip = $_SERVER['REMOTE_ADDR']; // Envia o IP do visitante para o seu e-mail! $enviar .= "De: Contato WEB\n";// Frase que aparecerá no topo da mensagem(email)! $enviar .= "IP registrado: $ip\n"; $enviar .= "Nome do contato: $nome\n"; $enviar .= "E-mail: $email\n------------------------------------------------------------\n"; $enviar .= "Assunto: $assunto\n\n"; $enviar .= "Mensagem: $mensagem\n"; $rh="noreply@revolutionsims.co.cc"// LINHA 292 >>>>>$mailto="revolutionsims@revolutionsims.co.cc"; mail($mailto, $titulo, utf8_decode($enviar), "From: $email"); // utf8 é uma funçaõ para aceitar acentos da lingua portuguesa mail($email, $assunto_r, utf8_decode($resposta), "From: $rh"); ?> <!-- depois de enviado o email... --> <script language="JavaScript">alert('A sua mensagem foi enviada com sucesso!'); location.href='index.php';</script> <!-- retorna para o index.. --> <p align="center"><br> </p> </p> </form> <script language=JavaScript> <!-- window.open = SymRealWinOpen; //--> </SCRIPT> </div> <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" /> <div id="footer"> <p class="copyright" align="center"><span class="copyright"><span class="copyright">The Sims, Spore e Sim City são marcas da Electronic Arts Inc. Todos os direitos reservados.<br /> <strong>©</strong>Revolution Sims - 2009 </span></span></p> <p class="copyright" align="center"><img src="ts3_icon.png" width="55" height="54" longdesc="ts3_icon.png" /><img src="spore_icon.png" width="55" height="55" longdesc="spore_icon.png" /><img src="simcity_icon.png" width="55" height="55" longdesc="simcity_icon.png" /></p> <!-- end #footer --></div> <!-- end #container --></div> </body> </html> Linha 292: $mailto="revolutionsims@revolutionsims.co.cc"; Como resolvo isso? Compartilhar este post Link para o post Compartilhar em outros sites
cassiano óliver 1 Denunciar post Postado Maio 9, 2009 o erro ta aqui... $rh="noreply@revolutionsims.co.cc"// tira o "//" e põe " ; " Compartilhar este post Link para o post Compartilhar em outros sites
G.Soares 0 Denunciar post Postado Maio 9, 2009 Muito obrigado mas eu ive que mudar o formulário porque não tava dando aquele, o erro desapareceu, obrigado Pode fechar esse tópico Compartilhar este post Link para o post Compartilhar em outros sites