I am trying to make XHTML pages with PHP . But when i write the php code it doesnt work. It works for plain XHTML.
For run that pages i am using WAP Proof software.
The code is here
--------------test.xhtml----------------
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <title>Sample code</title>
- </head>
- <body>
- <form action="test2.xhtml" method="post">
- Search For:<input type="text" name="txt" value="" id="txt" size="25" />
- <input type="submit" name="submit" value="submit" />
- </form>
- </body>
- </html>
----------test2.xhtml--------
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <title>Sample code1</title>
- </head>
- <body>
- <p align="center" > Hello <?php echo $_POST['txt']; ?></p>
- </body>
- </html>
When I run test.xhtml file then following message occurs
" Binary data (application/octet-stream)
Click "Open in Shell" button to open " .
When i click on open in shell button then nothing happens.WAP software is not registered yet but another sample code is running properly on this WAP Proof software .
If I remove PHP tag from second code then also it works fine. Is there any settings for using the XHTML with PHP?
Pls tell where I am wrong
Thanks in advance
Pratibha