473,326 Members | 2,076 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,326 software developers and data experts.

hilfe: php in dynamisch erstellten Seiten wird nicht verarbeitet

Ich nutze PHP auf meiner Seite www.rechercheportal.de auf zwei
verschiedene Arten:
1. sind sorgen kleine Scripte im Quellcode dafür, dass fix bleibende
HTML-Seiten eingebunden werden (per include), 2. nutze ich php-Scripte
wie unten, um Formulareingaben auf neuen Seiten darzustellen.
<?php
$fmtResponseScr= implode("", file("feedback.php"));
foreach($HTTP_GET_VARS as $key=> $val) {
$fmtResponseScr= str_replace("<$key>", $val, $fmtResponseScr);
}
echo $fmtResponseScr;
?>

Das Problem:
Die Seiten, die über (2.) durch den echo $fmtResponseScr;-Befehl
erstellt wurden enthalten ihrerseits wieder den include-Befehl als
..php-Bereich im HTML-Quellcode. Der wird aber nicht ausgeführt.

Die Frage ist also: Warum wird der HTML-Code nicht auf .php überprüft,
wenn die Datei dynamisch erstellt wurde und wie lässt sich das ändern?

Gruss aus Heidelberg
David Schubert
Jul 17 '05 #1
1 2260
Hi!

da***@rechercheportal.de (David Schubert) schrieb:
Die Frage ist also: Warum wird der HTML-Code nicht auf .php überprüft,
wenn die Datei dynamisch erstellt wurde und wie lässt sich das ändern?


I'm a native german speaker, but I had had some hard time to figure out
the question and I might still be wrong. David, you might want to ask
your question in de.comp.lang.php.misc, there are more german speaking
programmers.

The output of your program will be sent to the browser. If you output
any PHP code, it won't be executed but will be send to the browser, too.
You might want to use placeholders in feedback.php not only for the form
data, but for the fixed HTML parts. Your second script would have the
additional task to replace those placeholders with the HTML code.

Regards,
Matthias
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ben Butschko | last post by:
Hallo NG, ich habe folgendes Problem: In einem Formular möchte ich gerne Prüfen, ob die Variablen telefon_privat oder telefon_office gefüllt worden sind. Sinn ist, das man entweder eine...
3
by: S.W. Rasmussen | last post by:
Thanks a lot Randy, I'll try this solution. There may, however, be a copyright problem as the code is to be included in a distributed application (software package for analysis of nucleotide and...
1
by: Herr Herrner | last post by:
HUHU Ruf' Du den Jaschek mal an - vielleicht will er bei mir nicht ans Telefon gehen... 0178 -666- 8511 oder 040 230885
6
by: Hubert Hermanutz | last post by:
Hallo, ich möchte ein kleines Testprogramm erstellen, dass auf eine Visual C (Studio 6.0) DLL zugreift. Bevor ich damit beginne wollte ich die notwendigen Schritte, anhand eines Beispiels...
2
by: Uwe Münch | last post by:
Hallo zusammen, mal auf deutsch...: Wenn ich auf meinem W2K-Server VS.NET 2003 installiert habe, kann ich kein Projekt im dartin debuggen. Es kommt immer eine Fehlermeldung, die mir nicht...
2
by: Thomas Mueller | last post by:
Hallo NG, aus irgend welchen Gründen, kann die aspnet_wp.exe nicht gestartet werden. Eigentlich hat asp.net funktioniert, warum jetzt diese Meldungen? An den Rechten hat sich nichts geändert...
6
by: Bastian | last post by:
Hi, ich benutze PHP und PostgreSQL. Folgendes Problem: Eine Seite zeigt die Daten, die in einer Tabelle der DB abgespeichert sind. Der Benutzer wählt dann einen Datensatz aus, den er gerne...
1
by: BMP | last post by:
Ich habe hier eine PHP Datei und bräuchte mal eure Hilfe. In der Datei wird beim Aufruf das /Import Verzeichniss eingelesen und als Dropdown ausgegeben. Nun kann man unter dem Dropdown einen Button...
0
by: martin | last post by:
Hallo zusammen, Ich habe mit Visual Studio 2005 for Office System ein Word Template erstellt, das unter bestimmten Bedingungen Symbolleisten erstellt. Ich habe das Template in mein C:\Benutzer...
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
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.