Hej
Jeg har prøvet at skrive <?php.
Jeg har også prøvet at fjerne funktionen
date("H:i, jS F") helt. Så burde programmet
skrive 'Order processed at'.
Jeg har prøvet at skrive proccesorder.php
i ren php-kode
<?php
echo "<html>";
echo "<head>";
echo " <title>Bobs Auto Parts - Order Results</title>";
echo "</head>";
echo "<body bgcolor=\\"#E0E0E0\\" text=\\"#000000\\" link="\\#0000FF\\" alink=\\"#FF0000\\" vlink=\\"#0000FF\\">";
echo " <h1>Bob's Auto Parts</h1>";
echo " <h2>Order Results</h2>";
echo "<p>Order processed at ";
echo date("H:i, jS F") . "</p>";
echo "<br>";
echo "</body>";
echo "</html>";
?>
Det giver følgende udskrift
"; echo "
Bob's Auto Parts
"; echo "
Order Results
"; echo "
Order processed at "; echo date("H:i, jS F") . "
"; echo "
"; echo ""; echo ""; ?>
Jeg prøver også selv at rette problemet.
----------------------------------------
Jeg har rettet lidt i processorder.php
<?php
echo "<html>";
echo "<head>";
echo " <title>Bobs Auto Parts - Order Results</title>";
echo "</head>";
echo "<body bgcolor=#E0E0E0 text=#000000 link=#0000FF alink=#FF0000 vlink=#0000FF>";
echo " <h1>Bob's Auto Parts</h1>";
echo " <h2>Order Results</h2>";
echo "<p>Order processed at ";
echo date("H:i, jS F") . "</p>";
echo "<br>";
echo "</body>";
echo "</html>";
?>
Nu ser udskriften således ud når man kører php-filen:
Bob's Auto Parts
Order Results
Order processed at 01:12, 31st May
Indlæg senest redigeret d. 31.05.2007 01:17 af Bruger #11878