Hi,
I am trying to embed php code within WML for displaying images. I haven't had any success so far. I have the code below. Can someone tell me what is wrong or if this is possible at all..
HTML (this works)
<html>
<head>
<title>Image</title>
</head>
<body>
<h1 align="center">Image</h1>
<?php
echo "<img src=\"boy.png\"><br/>";
?>
</body>
</html>
wml (does not work)
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="card1" title="revHist">
<p align="left">
<?php
echo "<img src=\"boy.png\"/><br/>";
?>
</p>
</card>
</wml>
Thanks for your help.
Aravind