Array from HTML forms - Internal Server Error
Posted
by
user1392411
on Stack Overflow
See other posts from Stack Overflow
or by user1392411
Published on 2012-11-07T16:53:26Z
Indexed on
2012/11/07
17:00 UTC
Read the original article
Hit count: 150
I try to make a requestform for our school. But if I transmit this form I get a "Internal Server Error". I searched but I found nothing like that. Also I don't get a only this error message "Internal Server Error", nothing more. Any ideas why?
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="description" content="">
<link rel="stylesheet" href="../css/normalize.css" />
<link rel="stylesheet" href="../css/bestellformular.css" />
<!-- HTML 5 in Internet Explorer 9 und kleiner aktivieren -->
<!--[if lt IE 9]>
<script type="textt/javascript" src="js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<section id="head">
</section>
<form action="../php/einlesen.php" method="post">
<section id="body">
<h1>Bestellung</h1>
<table>
<colgroup>
<col width="10%">
<col width="80%">
<col width="10%">
</colgroup>
<tr>
<th>
Artikel-Nr.
</th>
<th>
Artikel
</th>
<th>
Menge
</th>
</tr>
<tr>
<td>
<input type="number" placeholder="Artikel-Nr." name="articelnr[]" required />
</td>
<td>
<input type="text" placeholder="Name des Artikels" name="articelname[]" required />
</td>
<td>
<input type="number" placeholder="Menge" name="quantity[]" required />
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
<tr>
<td>
<input type="number" name="articelnr[]" />
</td>
<td>
<input type="text" name="articelname[]" />
</td>
<td>
<input type="number" name="quantity[]"/>
</td>
</tr>
</table>
</section>
<section id="info">
<div class="left">
<hr />
<p>
Kundennummer <input type="text" />
</p>
</div>
<div class="right">
<table>
<tr>
<td>Firma</td>
<td><input type="text" name="company"required /></td>
</tr>
<tr>
<td>Ort, PLZ</td>
<td><input type="text" name="place" required /></td>
<td><input type="number" name="plz" class="number" required /></td>
</tr>
<tr>
<td>Straße, Nr.</td>
<td><input type="text" name="street"required /></td>
<td><input type="number" name="streetnr" class="number" required /></td>
</tr>
<tr>
<td>Telefon</td>
<td><input type="tel" name="tel" required /></td>
</tr>
<tr>
<td>Fax</td>
<td><input type="text" name="fax" required /></td>
</tr>
<tr>
<td>E-Mail</td>
<td><input type="email" name="email" required /></td>
</tr>
<tr>
<td>Datum</td>
<td><input type="date" name="date" required placeholder="tt.mm.jj"/></td>
</tr>
</table>
</div>
</section>
<section id="submit">
<input type="checkbox" name="agb" required /> Ich habe die <a href="../docs/agb.pdf">AGB</a> gelesen und akzeptiere diese.
<input type="submit" value="Bestellung Abschicken"/>
</section>
</form>
<section id="footer">
<hr />
</section>
</body>
</html>
Any Ideas why? The data is sent to a yet empty PHP document. The bracelets in the name tag are used to get an array. My PHP version is 5.3.8
© Stack Overflow or respective owner