Hello friends,
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----------------
[code=html]
<!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.x html" method="post">
Search For:<input type="text" name="txt" value="" id="txt" size="25" />
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
----------test2.xhtml--------
[code=html]
<!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>
[/code]
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
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----------------
[code=html]
<!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.x html" method="post">
Search For:<input type="text" name="txt" value="" id="txt" size="25" />
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
----------test2.xhtml--------
[code=html]
<!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>
[/code]
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
Comment