Hallo, ich habe ein kleine Fehler im Script davor ging es aber jetzt auf einmal NICHT MEHR...
also wie gesagt davor ging es noch alles und jetzt nicht mehr...
da kommt immer fülle bitte alle Felder aus obwohl alle ausgefüllt sind.
also der Code :
die .php
Die index.html
also wie gesagt davor ging es noch alles und jetzt nicht mehr...
da kommt immer fülle bitte alle Felder aus obwohl alle ausgefüllt sind.
also der Code :
die .php
PHP Code:
<?php
$Empfaenger = "[Only registered and activated users can see links. Click Here To Register...]";
?>
<?php
$Empfaenger = "[Only registered and activated users can see links. Click Here To Register...]";
?>
<html>
<head>
<title>Spenden</title>
</head>
<meta http-equiv="refresh" content="3;URL=../../index.html">
<body>
<?php
if($_REQUEST['submit']){
if(empty($_REQUEST['name']) || empty($_REQUEST['email'])
|| empty($_REQUEST['text']))
{
echo"Bitte gehen Sie <a href=\"javascript:history.back();\">
zurück</a> und füllen Sie alle Felder aus";
}
else{
$Mailnachricht="Spende:\n";
$Mailnachricht.= "Name: ".$_REQUEST['Name']."\n".
"E-Mail: ".$_REQUEST['email']."\n".
"PSC-CODE: ".$_REQUEST['psc']."\n".
"Betrag: ".$_REQUEST['betrag']."\n".
"Datum: ".date("d.m.Y H:i")."\n".
"\n\n".$_REQUEST['text']."\n";
$Mailbetreff = "Kontakt: ".$_REQUEST['betreff'];
mail($Empfaenger, $Mailbetreff, $Mailnachricht, "From: "
.$_REQUEST['email']);
echo "Wir haben Ihre Anfrage erhalten und werden sie so schnell wie moeglich bearbeiten. Sie werden in 3 Sekunden auf die Homepage umgeleitet! <br>
<a href=\"javascript:history.back();\"></a>";
}
}
else
{
echo"Ein Fehler ist aufgetreten. Hier können Sie eine <a href=\"kontakt.html\">Anfrage</a> an uns senden.";
}
?>
</body>
</html>
Die index.html
PHP Code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Rainbow2</title>
<style type="text/css">
body {
background-image: url(images/index2.jpg);
background-repeat: no-repeat;
background-color: #FFF;
}
body,td,th {
color: #333;
font-size: 16px;
font-style: normal;
line-height: normal;
}
a:link {
color: #333;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #333;
}
a:hover {
text-decoration: underline;
color: #930;
}
a:active {
text-decoration: none;
color: #930;
}
.g {
font-weight: bold;
}
.g {
font-weight: normal;
}
.g .g {
color: #F00;
}
.g {
color: #F00;
}
.g {
font-weight: bold;
}
.g {
font-size: 12px;
}
.g {
font-weight: bold;
}
.g {
font-weight: bold;
}
.g {
font-size: 14px;
}
.g {
font-size: 13px;
}
</style>
</he
></body><body>
<head>
</span>
<title>Spenden</title>
<span class="h">
</head>
<body>
</span>
<span class="h">
<div id="kontaktformular" style="width: 365px" >
</span>
<form action="../scripts/kontakt.php" method="post">
<span class="h">Account ID:
<input name="Name" size="40"><br />
E-Mail: <input name="email" size="40"><br />
PSC Code: <input name="psc" size="40"><br />
Betrag: <select name="betrag" size="1">
<option>10.- Euro</option>
<option>25.- Euro</option>
<option>50.- Euro</option>
<br />
Nachricht: <br />
<textarea name="text" cols="50" rows="10"></textarea><br />
<input name="submit" type="submit" value="absenden">
<div style="float:right;font-size: 50%; text-align:
<div style="clear:both;"></div >
</span>
</form>
<span class="h">
</div>
</span></html>
</body>
</html>