Bei einem meiner Projekte funktioniert die Registration eines neuen Benutzers nicht und ich krieg einfach nicht raus warum. Es wird auch keinerelei Fehler angezeigt und andere Anwendungen mit den Formular-Daten (PDF Erstellung und Mail-Versand) funktionieren tadellos. Ich erlaube mir deshalb hier das Template mit dem Formular und dasjenige mit der Registrierung zu posten.
Vielleicht hat ja jemand eine Idee.
Vielen Dank
Template mit Formular:
Code: Alles auswählen
<we:sessionStart /><!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" xml:lang="de" lang="de">
<head>
<we:include id="228" seeMode="false" /><we:ifEditmode><we:css id="232" /></we:ifEditmode>
</head>
<body onload="showfields()">
<we:include id="229" seeMode="true" />
<div id="contentMain">
<div id="contentText">
<h1><we:input type="text" name="headline" style="width:465px;background:#E5E5DD;border:0;font-weight:bold;font-size:12px;padding:2px 0;" /></h1>
<we:textarea name="textSpalte" width="464" height="380" wysiwyg="true" commands="prop,link,list,justify,insertimage,table,list,editsource" />
<form name="anmeldung" method="post" action="anmeldung_send.php">
<table width="450" border="0">
<tr>
<td width="200">Anrede*</td>
<td><select style="width:110px;" name="s[Anrede_Anrede]"><option value="Frau">Frau</option><option value="Herr">Herr</option></select></td>
</tr>
<tr>
<td>Nachname*</td>
<td><we:sessionField name="Kontakt_Nachname" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Vorname* </td>
<td><we:sessionField name="Kontakt_Vorname" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Funktion</td>
<td><we:sessionField name="Kontakt_Funktion" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Firma*</td>
<td><we:sessionField name="Kontakt_Firma" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Strasse/Hausnummer*</td>
<td><we:sessionField name="Kontakt_Strasse_Hausnummer" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Postleitzahl/Ort*</td>
<td><we:sessionField name="Kontakt_PLZ_Ort" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Land*</td>
<td><select name="s[Kontakt_Land]" style="width:110px;"><option value="Schweiz">Schweiz</option><option value="Deutschland">Deutschland</option><option value="Frankreich">Frankreich</option><option value="Italien">Italien</option><option value="England">England</option></select></td>
</tr>
<tr>
<td>Telefonnummer*</td>
<td><we:sessionField name="Kontakt_Telefonnummer" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Fax</td>
<td><we:sessionField name="Kontakt_Fax" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Email*</td>
<td><we:sessionField name="Username" type="textinput" style="width:110px;" /></td>
</tr>
<tr>
<td>Verifikation Email*</td>
<td><input type="text" name="ver_email" style="width:110px;" /></td>
</tr>
<tr>
<td>Anzahl Teilnehmer*</td>
<td><select name="s[Kontakt_Anzahl_Teilnehmer]" onchange="showfields()" style="width:50px;"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option></select></td>
</tr>
<tr>
<td valign="top">Namen der weiteren Teilnehmer*</td>
<td><we:sessionField name="Kontakt_Teilnehmer2" type="textinput" style="width:110px;" style="width:110px;display:none;" id="name2" />
<we:sessionField name="Kontakt_Teilnehmer3" type="textinput" style="width:110px;" style="width:110px;display:none;" id="name3" />
<we:sessionField name="Kontakt_Teilnehmer4" type="textinput" style="width:110px;" style="width:110px;display:none;" id="name4" />
<we:sessionField name="Kontakt_Teilnehmer5" type="textinput" style="width:110px;" style="width:110px;display:none;" id="name5" />
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input type="checkbox" name="agb" /> Ich akzeptiere die oben stehenden AGB</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">Welche Referate werden Sie eher besuchen (diese Information dient uns zur optimalen Einteilung der Raumgrössen)?
<table border="0">
<tr>
<td width="200"><we:sessionField name="Interessen_Organisation" type="checkbox" values="ja" /> Organisation</td>
<td><we:sessionField name="Interessen_Praxis" type="checkbox" values="ja" /> Praxis</td>
</tr>
<tr>
<td><we:sessionField name="Interessen_Methodik" type="checkbox" values="ja" /> Methodik</td>
<td><we:sessionField name="Interessen_Investition" type="checkbox" values="ja" /> Investition</td>
</tr>
</table>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td>Passwort*
(für geschützten Bereich)</td>
<td valign="top"><we:sessionField name="Password" type="password" style="width:110px;" /></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td><input type="submit" value="Senden" /></td>
</tr>
</table>
</form>
</div>
</div>
</div>
<div id="contentSub">
<div id="topbildcontainer"><we:img name="sidebarBild" border="0" thumbnail="Sidebar Bild klein" showinputs="false" /></div>
<we:include id="246" seeMode="true" />
<div id="subnavi">
<we:linklist name="subnavi"><we:link /><we:postlink>
</we:postlink></we:linklist>
</div>
</div>
<we:include id="230" seeMode="true" />
</body>
</html>
Code: Alles auswählen
<we:sessionStart/><!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" xml:lang="de" lang="de">
<head>
<we:include id="228" seeMode="false" /><we:ifEditmode><we:css id="232" /></we:ifEditmode>
</head>
<body>
<we:include id="229" seeMode="true" />
<div id="contentMain">
<div id="contentText">
<h1><we:input type="text" name="headline" style="width:465px;background:#E5E5DD;border:0;font-weight:bold;font-size:12px;padding:2px 0;" /></h1>
<we:ifNotWebedition><we:saveRegisteredUser userexists="Fehler: Dieser Benutzer existiert schon" />
<?php
include("createpdf.php");
/* CREATE MAIL */
include("../htmlMimeMail.php");
$mail = new htmlMimeMail();
// Read the file test.zip into $attachment.
$attachment = $mail->getFile("../pdf/anmeldungen/anmeldung_".$_POST['s']['Username'].".pdf");
$mail->setText("Vielen Dank für Ihre Anmeldung beim Swiss Testing Day.");
$mail->setSubject('Anmeldung');
$mail->addAttachment($attachment, "anmeldung_".$_POST['s']['Username'].".pdf", 'application/pdf');
$mail->setFrom('info@webedition.de');
$result = $mail->send(array($_POST['s']['Username']));
?></we:ifNotWebedition>
<we:textarea name="textSpalte" width="464" height="380" wysiwyg="true" commands="prop,link,list,justify,insertimage,table,list,editsource" />
</div>
</div>
</div>
<div id="contentSub">
<div><we:img name="sidebarBild" border="0" thumbnail="Sidebar Bild klein" showinputs="false" /></div>
<we:include id="246" seeMode="true" />
<div id="subnavi">
<we:linklist name="subnavi"><we:link /><we:postlink>
</we:postlink></we:linklist>
</div>
</div>
<we:include id="230" seeMode="true" />
</body>
</html>