Hi,
I've got a strange behaviour I can't explain. the form is submitted if
a) no field is filled,
b) only one field is filled.
if both fields are filled I get:
XML processing error: no element found
line 33, col 1
and an empty $_POST array
anyone an idea where I'm going wrong?
thanks
I've got a strange behaviour I can't explain. the form is submitted if
a) no field is filled,
b) only one field is filled.
if both fields are filled I get:
XML processing error: no element found
line 33, col 1
and an empty $_POST array
anyone an idea where I'm going wrong?
thanks
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml;charset=ISO-8859-1"/>
<meta http-equiv="content-style-type" content="text/css"/>
<meta http-equiv="content-script-type" content="text/javascript"/>
<title>Newslettergenerator</title>
<meta name="language" content="de" />
<meta name="DC.subject" content="Kulturbeutel Newsletter schreiben" />
<meta name="DC.publisher" content="Kulturbeutel-Leipzig" />
<meta name="DC.format" content="text/xml" />
<meta name="DC.language" content="de" />
<link rel="stylesheet" type="text/css" href="sys/rund.css" />
<link rel="stylesheet" type="text/css" href="sys/cal.css" />
</head>
<body>
<p class="mitte">
<a href="index.html">Inhalt</a>
</p>
<h1>Newsletter schreiben</h1>
<table id="blog">
<thead>
<tr>
<th id="spalte1">Datum</th>
<th id="spalte2">Nachricht</th>
</tr>
</thead>
<tbody>
<tr>
<td>11.6.2008</td>
<td>die letzte Chance, [...]
… <a href="/~KBL/intern/rundschreiben.php?desc=0">mehr</a></td>
</tr>
<tr>
<td>4.6.2008</td>
<td>ein erster Test, [...]
lg, Alex … <a href="/~KBL/intern/rundschreiben.php?desc=1">mehr</a></td>
</tr>
</tbody>
</table>
<p><span class="b">WICHTIG:</span> Die Anrede wird automatisch eingefügt!</p>
<form action="rundschreiben.php" method="post" accept-charset="UTF-8">
<fieldset>
<legend>Nachricht:</legend>
<label for="betreff">Titel: </label>
<div>
<input type="text" id="betreff" name="betreff" size="80" maxlength="100" />
</div>
<label for="NLG">Nachricht: </label>
<div>
<textarea id="NLG" name="NLG" cols="80" rows="20"></textarea>
</div>
<div class="mitte">
<input name="senden" type="submit" value="Email abschicken" class="buts" />
<input type="reset" value="abbrechen" class="buts" />
</div>
</fieldset>
</form>
</body>
</html>
Comment