Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 04:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP] syntax error

Discussion on [PHP] syntax error within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
.FailMorePls#'s Avatar
 
elite*gold: 1
Join Date: Dec 2010
Posts: 1,643
Received Thanks: 434
[PHP] syntax error

Hallo

ich weiß nich warum der fehler kommt aber vllt. wisst ihr es

Parse error: syntax error, unexpected T_ELSE in .... on line 37

PHP Code:
        $Mailbetreff "Kontakt: ".$_REQUEST['betreff'];
        
mail($Empfaenger$Mailbetreff$Mailnachricht"From: "
        
.$_REQUEST['email']);
        
        echo 
"Wir haben Ihre Anfrage erhalten und werden sie so schnell wie möglich bearbeiten. <br>
        <a href=\"javascript:history.back();\">Zurück</a>"
;
(
Zeile 37)    else
    
      echo
"Ein Fehler ist aufgetreten. Hier können Sie eine <a href=\"kontakt.html\">Anfrage</a> an uns senden.";
      
    
?>
  </body>
</html> 
.FailMorePls# is offline  
Old 12/15/2012, 14:46   #2
 
flickz.'s Avatar
 
elite*gold: 5
Join Date: May 2012
Posts: 589
Received Thanks: 139
Schick mal den kompletten Code mit der if() Abfrage und den {} usw.
Wenn das was du dort geschrieben hast bereits der komplette PHP Code ist solltest du dir nochmal die Grundlagen von PHP durchlesen.
flickz. is offline  
Old 12/15/2012, 14:46   #3
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,407
Received Thanks: 2,024
Quote:
else
Wo ist dein If? Und wenn man nicht richtig einrückt braucht man { } (sollte man meiner Meinung nach immer nutzen)
NotEnoughForYou is offline  
Old 12/15/2012, 14:51   #4
 
flickz.'s Avatar
 
elite*gold: 5
Join Date: May 2012
Posts: 589
Received Thanks: 139
Quote:
Originally Posted by NotEnoughForYou View Post
Wo ist dein If? Und wenn man nicht richtig einrückt braucht man { } (sollte man meiner Meinung nach immer nutzen)
Oder halt if(): und endif;
Ich glaube aber er hat irgendwo in seiner if Abfrage ne Klammer oder sowas vergessen.
flickz. is offline  
Old 12/15/2012, 14:54   #5
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,407
Received Thanks: 2,024
Quote:
Originally Posted by flickz. View Post
Oder halt if(): und endif;
Ich glaube aber er hat irgendwo in seiner if Abfrage ne Klammer oder sowas vergessen.
joa finde aber die {} Variante übersichtlicher.


@TE: man sollte außerdem nicht aus dem Request Array sich sachen holen sondern direkt aus $_POST oder $_GET
NotEnoughForYou is offline  
Reply


Similar Threads Similar Threads
[PHP] syntax error
12/15/2012 - Web Development - 0 Replies
Ausversehen 2 mal abgeschickt hab schon clsrq abgeschickt
Parse error: syntax error, unexpected T_VARIABLE
08/05/2012 - Web Development - 3 Replies
Hallo, bekomme diese Meldung: An sich findet man meistens den Fehler, ich bin jetzt aber schon mehrmals die vorherigen 31 Zeilen durchgegangen und hab keinen einzigen Fehler feststellen können. Das sind die ersten 33 Zeilen: <html> <head></head> <body>
error: syntax
11/21/2011 - Shaiya - 3 Replies
hello I install the script of the inscription I create an account and gives me this error Fatal error: Call to undefined function mssql_connect() in E:\xampp\htdocs\inscription\config.php on line 6 :confused:
[HELP]Syntax Error
11/28/2009 - Dekaron Private Server - 1 Replies
I have a problem with syntax can someone help: http://img192.imageshack.us/img192/1248/erro1m.jp g Code: USE ;
[Hilfe]Parse error: syntax error
10/27/2009 - Metin2 Private Server - 6 Replies
Also hab IS -Script per xampp on und beim einloggen kommt der fehler hier Parse error: syntax error, unexpected $end in C:\xampp\htdocs\default1.php on line 875 Help pls Thx Freaky



All times are GMT +2. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.