Einzelnen Beitrag anzeigen
Alt 23.08.2011, 00:17   #1
athropos
Hero
 
Registriert seit: 24.07.2001
Alter: 46
Beiträge: 801


athropos eine Nachricht über Skype™ schicken
Standard IE7 - php include problem?

Servus,

ich habe ein ziemlich bizarres Problem bei einem PHP-Projekt, mit dem ich mich gerade spiele.
Konkret baue ich ein dynamisches Menü mittels HMTL-Formularen auf.
Die Formulare sind vom Aufbau identisch und schauen wie folgt aus:
HTML-Code:
<form action='foo.php' method='post'>
    <?php include($_SERVER["DOCUMENT_ROOT"].'/filename.inc'); ?>
    <input type='submit' class='button' value='Text' title='Text' />    
</form>
Die Includeanweisung beinhaltet einige Steuerdaten, die ich nicht in eine Sessionvariable legen wollte (mein IE7-Problem tritt auch ohne diesem Include auf, nur als Grund warum ich diese Methodik der Menüführung gewählt habe)

Wenn ich jetzt mehrere (8) dieser Formularbuttons mittels include auf die Seite setze, habe ich im IE7 den Effekt, dass der erste Button funktioniert (egal, welches Datei ich als erste include), der 2. bis 5. überhaupt nicht, der 6. nur, wenn ich mit dem Mousecursor über dem Button ein bißchen herumwackel, der 7. und 8. Button wieder problemlos.
Fehlermeldungen bekomm ich keine, der Effekt tritt sowohl in einem "echten" IE7 auf als auch im IE9 im Kompatibilitätsmodus. Bei anderen Browsern (Firefox, Chrome, IE8, IE9, Safari) funktioniert meine Implementierung durchaus so wie ich mir das vorstelle.
Hat jemand von euch eine Idee, woran das liegen könnte und wie ich das Problem lösen kann?

Danke!
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π.
Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre.

Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\"

Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\".
athropos ist offline   Mit Zitat antworten