close× Call Us +49 (1805) 01 29 59

Thread Author: Holsti
Thread ID: 3995
Thread Info
Es gibt 2 Beiträge zu diesem Thema, und es wurde 3827 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Auswahlformular?!
Holsti
So neue Frage, aber hat auch was mit dem Formular zu tun.

Ich habe mit der Standard contact.php ein "eigenes" Forumlar erstellt.
Im Grunde nur drei Textfelder, mit drei Usernamen.

Ohne Nachrichtenbox und EMail.

Wenn ich nun aber absenden drücke sagt der natürlich "Fehler- Nachricht/Email nicht vorhanden".

Was muss ich denn noch in der contact.php ändern/löschen?

http://fifafusion.de/wunschspieler.php

Da drum geht es.

[geshi=php]<?php

require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."contact.php";

add_to_title($locale['global_200'].$locale['000004']);

if (isset($_POST['sendmessage'])) {
$error = "";
$mailname = substr(stripinput(trim($_POST['mailname'])), 0, 50);
$email = substr(stripinput(trim($_POST['email'])), 0, 100);
$subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))), 0, 50);
$message = descript(stripslash(trim($_POST['message'])));
if ($mailname == "") {
$error .= " <span class='alt'>".$locale['420']."</span><br />\n";
}
if ($email == "" || !preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) {
$error .= " <span class='alt'>".$locale['421']."</span><br />\n";
}
if ($subject == "") {
$error .= " <span class='alt'>".$locale['422']."</span><br />\n";
}
if ($message == "") {
$error .= " <span class='alt'>".$locale['423']."</span><br />\n";
}
$_CAPTCHA_IS_VALID = false;
include INCLUDES."captchas/".$settings['captcha']."/captcha_check.php";
if ($_CAPTCHA_IS_VALID == false) {
$error .= " <span class='alt'>".$locale['424']."</span><br />\n";
}
if (!$error) {
require_once INCLUDES."sendmail_include.php";
if (!sendemail($settings['siteusername'],$settings['siteemail'],$mailname,$email,$subject,$message)) {
$error .= " <span class='alt'>".$locale['425']."</span><br />\n";
}
}
if ($error) {
opentable($locale['000004']);
echo "<div style='text-align:center'><br />\n".$locale['442']."<br /><br />\n".$error."<br />\n".$locale['443']."</div><br />\n";
closetable();
} else {
opentable($locale['000004']);
echo "<div style='text-align:center'><br />\n".$locale['440']."<br /><br />\n".$locale['441']."</div><br />\n";
closetable();
}
} else {
opentable($locale['000004']);
echo $locale['000005']."<br /><br />\n";
echo "<form name='userform' method='post' action='".FUSION_SELF."'>\n";
echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n";
echo "<td width='100' class='tbl'>".$locale['000001']."</td>\n";
echo "<td class='tbl'><input type='text' name='mailname' maxlength='100' class='textbox' style='width: 200px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='100' class='tbl'>".$locale['000002']."</td>\n";
echo "<td class='tbl'><input type='text' name='email' maxlength='100' class='textbox' style='width: 200px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='100' class='tbl'>".$locale['000003']."</td>\n";
echo "<td class='tbl'><input type='text' name='subject' maxlength='100' class='textbox' style='width: 200px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='100' class='tbl'>".$locale['407']."</td>\n";
echo "<td class='tbl'>";
include INCLUDES."captchas/".$settings['captcha']."/captcha_display.php";
if (!isset($_CAPTCHA_HIDE_INPUT) || (isset($_CAPTCHA_HIDE_INPUT) && !$_CAPTCHA_HIDE_INPUT)) {
echo "</td>\n</tr>\n<tr>";
echo "<td class='tbl'><label for='captcha_code'>".$locale['408']."</label></td>\n";
echo "<td class='tbl'>";
echo "<input type='text' id='captcha_code' name='captcha_code' class='textbox' autocomplete='off' style='width:100px' />";
}
echo "</td>\n</tr>\n<tr>\n";
echo "<td align='center' colspan='2' class='tbl'>\n";
echo "<input type='submit' name='sendmessage' value='".$locale['406']."' class='button' /></td>\n";
echo "</tr>\n</table>\n</form>\n";
closetable();
}

require_once THEMES."templates/footer.php";
?>
[/geshi]
Bearbeitet von Holsti am 25.03.2012 00000003 20:43
 
SC-Ad-Bot
 
Holsti
Kommt schon Leute, die neue Aufgabe ist für den ein oder anderen Crack doch lachhaft Smile

Ich sehe es aber absolut nicht und habe schon rumgelöscht und verändert und krieg es nicht raus.
 
Springe ins Forum: