form not submitted sometimes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    form not submitted sometimes

    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

    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&uuml;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>
    Last edited by Dormilich; Dec 1 '10, 12:30 PM.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    XHTML version 1.1 is a XML only application and MUST be served as XML. Don't have time to look at this but perhaps that's the answer.

    In addition, the English between the tags is all messed up. :)

    EDIT: Which browser? IE does not do XHTML either.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      Originally posted by drhowarddrfine
      XHTML version 1.1 is a XML only application and MUST be served as XML.
      c.f. line 5

      Originally posted by drhowarddrfine
      In addition, the English between the tags is all messed up. :)
      yea, I know, but that's the best I could do in that short time. 8-)

      Originally posted by drhowarddrfine
      Which browser? IE does not do XHTML either.
      Firefox 3.0.6 / Mac OS 10.5, IE would be served with HTML 4.01

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Haven't been able to duplicate this. Is the error from the browser or your server?

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          Originally posted by drhowarddrfine
          Is the error from the browser or your server?
          I wish I knew myself.... though the server seems to work normally

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            after some trial & error I could narrow down the problem to one of the mail classes which is responsible for sending the result. still more debugging to do.

            thanks for your effort so far

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              finally it looks like an uncaught exception was responsible for that....

              Comment

              Working...