473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

form not submitted sometimes

Dormilich
8,658 Recognized Expert Moderator Expert
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 2334
drhowarddrfine
7,435 Recognized Expert Expert
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 Recognized Expert Moderator Expert
@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 Recognized Expert Expert
Haven't been able to duplicate this. Is the error from the browser or your server?
Feb 15 '09 #4
Dormilich
8,658 Recognized Expert Moderator Expert
@drhowarddrfine
I wish I knew myself.... though the server seems to work normally
Feb 15 '09 #5
Dormilich
8,658 Recognized Expert Moderator Expert
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 Recognized Expert Moderator Expert
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.