PDA

Vollständige Version anzeigen : PHP Script macht Probleme



Pikes
30.05.2008, 20:55
ein kleines problem.
habe hier eine naja sozusagen anwesenheitsliste für unsere staffel geproggt. ich bekomme jedoch diese warnung


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /homepages/39/d203646950/htdocs/wsb4504742202/1.php on line 7

Parse error: syntax error, unexpected T_STRING in /homepages/39/d203646950/htdocs/wsb4504742202/1.php on line 7

jedoch ist in diesem script kein fehler zumindest find ich keinen fehler.



<html>
<body>
<h2> Pilot Check SQ.155 "Raiders" F-15C </h2>
<form action="roster.php" method="post">

<?php

$person = aray("384"=> -=Foxynthor=- X/O" ,
"566"=> Maverick C/O" ,
"886"=> Alexandros Col." ,
"527"=> Floppy Lt.Col." ,
"526"=> Cypher Col." ,
"842"=> CheckYourSix Col." ,
"567"=> KackBoon." ,
"753"=> Duck Maj." ,
"356"=> Harpoon 1st Lt." ,
"649"=> The Death 2nd Lt.") ;

echo "<table border>" ;
echo "<td><td><b>Pilot ID SQ.155</b></td><td><b>Callsign</b></td>" ;
echo "<td><b>stand by for Taxi</b></td>

foreach($person as $id=>name)
{
echo "<tr>" ;
echo "<td>$id</td>
echo "<td>$name</td>" ;
echo <td><input type='checkbox' name=' pe[id$]'></td>" ;
echo </td>" ;
}
echo "</table>";
?>

<p>
<input type="submit" value="Speichern in LogBuch">
</form>
</body>
</html>


könnt ihr mir evtl helfen? xD

der script befindet sich im anfangstaium und macht jetzt schon probleme /:(

wtf
03.06.2008, 14:21
array bitte mit zwei 'r'.

pe[id$]' falsch, richtig pe[$id]

Außerdem ist das HTML-Markup Scheiße (wo sind die <tr></tr>?)

Pikes
03.06.2008, 14:26
array bitte mit zwei 'r'.

pe[id$]' falsch, richtig pe[$id]

Außerdem ist das HTML-Markup Scheiße (wo sind die <tr></tr>?)

:motz: :wand: dumme leichtsinns fehler

:bow: vielen dank wtf

Rheinlaender
03.06.2008, 16:25
Wenn Du einen vernueftigen Editor benutzt, z. B. Kate oder vim mit einem Syntax highlighting, dann sieht man das sofort.

Klopperhorst
03.06.2008, 17:11
Da fehlt ein " "384" =>


---