473,320 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

form not submitted sometimes

Dormilich
8,658 Expert Mod 8TB
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

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
  4.     <head>
  5.         <meta http-equiv="content-type" content="application/xhtml+xml;charset=ISO-8859-1"/>
  6.         <meta http-equiv="content-style-type" content="text/css"/>
  7.         <meta http-equiv="content-script-type" content="text/javascript"/>
  8.         <title>Newslettergenerator</title>
  9.         <meta name="language" content="de" />
  10.         <meta name="DC.subject" content="Kulturbeutel Newsletter schreiben" />
  11.         <meta name="DC.publisher" content="Kulturbeutel-Leipzig" />
  12.         <meta name="DC.format" content="text/xml" />
  13.         <meta name="DC.language" content="de" />
  14.         <link rel="stylesheet" type="text/css" href="sys/rund.css" />
  15.         <link rel="stylesheet" type="text/css" href="sys/cal.css" />
  16.     </head>
  17.  
  18.     <body>
  19.         <p class="mitte">
  20.             <a href="index.html">Inhalt</a>
  21.         </p>
  22.         <h1>Newsletter schreiben</h1>
  23.  
  24. <table id="blog">
  25.     <thead>
  26.         <tr>
  27.             <th id="spalte1">Datum</th>
  28.             <th id="spalte2">Nachricht</th>
  29.         </tr>
  30.     </thead>
  31.     <tbody>
  32.         <tr>
  33.             <td>11.6.2008</td>
  34.             <td>die letzte Chance, [...]
  35.  
  36.  … <a href="/~KBL/intern/rundschreiben.php?desc=0">mehr</a></td>
  37.         </tr>
  38.         <tr>
  39.             <td>4.6.2008</td>
  40.             <td>ein erster Test, [...]
  41.  
  42. lg, Alex … <a href="/~KBL/intern/rundschreiben.php?desc=1">mehr</a></td>
  43.         </tr>
  44.     </tbody>
  45. </table>
  46.         <p><span class="b">WICHTIG:</span> Die Anrede wird automatisch eingef&uuml;gt!</p>
  47.         <form action="rundschreiben.php" method="post" accept-charset="UTF-8">
  48.             <fieldset>
  49.                 <legend>Nachricht:</legend>
  50.                 <label for="betreff">Titel: </label>
  51.                 <div>
  52.                     <input type="text" id="betreff" name="betreff" size="80" maxlength="100" />
  53.                 </div>
  54.                 <label for="NLG">Nachricht: </label>
  55.                 <div>
  56.                     <textarea id="NLG" name="NLG" cols="80" rows="20"></textarea>
  57.                 </div>
  58.                 <div class="mitte">
  59.                     <input name="senden" type="submit" value="Email abschicken" class="buts" />
  60.                     <input type="reset" value="abbrechen" class="buts" />
  61.                 </div>
  62.             </fieldset>
  63.         </form>
  64.     </body>
  65. </html>
Feb 14 '09 #1

✓ answered by Dormilich

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

6 2327
drhowarddrfine
7,435 Expert 4TB
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.
Feb 15 '09 #2
Dormilich
8,658 Expert Mod 8TB
@drhowarddrfine
c.f. line 5

@drhowarddrfine
yea, I know, but that's the best I could do in that short time. 8-)

@drhowarddrfine
Firefox 3.0.6 / Mac OS 10.5, IE would be served with HTML 4.01
Feb 15 '09 #3
drhowarddrfine
7,435 Expert 4TB
Haven't been able to duplicate this. Is the error from the browser or your server?
Feb 15 '09 #4
Dormilich
8,658 Expert Mod 8TB
@drhowarddrfine
I wish I knew myself.... though the server seems to work normally
Feb 15 '09 #5
Dormilich
8,658 Expert Mod 8TB
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
Feb 15 '09 #6
Dormilich
8,658 Expert Mod 8TB
finally it looks like an uncaught exception was responsible for that....
Mar 4 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Norman Bird | last post by:
I have a form i will use to register new people and when I click the submit button, the form just shows itself. It is supposed to show a message showing field errors if you leave fields blank etc....
1
by: Eric | last post by:
Hello everyone, I am pretty much newbie to ASP so please bear with me as I explain my problem. I currently have a main form which displays data queried from a SQL database. From that main page...
5
by: Jeremy | last post by:
I have a very large HTML form (with about 50 fields) that's being submitted to an ASP page via the "POST" method. I don't use "GET" because the data would probably exceed the limit allowed in the...
19
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
2
by: Andy Goldstein | last post by:
I have a table where all the TRs have an onClick handler registered. One (and only one) of the rows has 2 text input boxes, where each textbox has an onChange handler registered. Both the onClick...
14
by: threeflush | last post by:
I'm supporting an ASP legacy application and need to implement "autosave" functionality. I have two frames, one that holds tabs displaying different pages a user can select, and the other that...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
1
by: pxp2002 | last post by:
Hi there - My partner and I are new to PHP and were very happy with the enquiry form we created yet it only works sometimes. It was brought to my attention when a prospective client called us after...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.