Jump to content

xhtml problem


sazzie

Recommended Posts

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Hello world. Welcome to our mobile Calendar test interface</title>
  </head>

  <body>
  
    <p>Select Date</p>
    <form action="phpTest.php" method="post">
    	<select>
	  <option>Milk</option>
	  <option>Coffee</option>
	  <option>Tea</option>
	</select>
	<input type="submit" value="ENGAGE">
    </form>
    <hr />
    
  </body>
</html>

 

<?php
echo "Interface.php is active!";
?>

 

I am trying to get the above code to work.

 

Both on my mobile phone emulator and standard web browser(IE), instead of obtaining output from the php

script it tries to download the script.

 

Can someone please offer some help? ???

Link to comment
Share on other sites

Thank you very much for that. I am at work presently so I haven't had a chance to try your recommendation out

but I have a feeling it's right because I have no idea about php settings  ;D

 

I try and keep you posted - if it works or not.

Thanks

Link to comment
Share on other sites

Yes you have short tags enabled in your php.ini file

 

replace top line with this...

 

<?php
echo '<?xml version="1.0"?>';
?>

 

I spoke too soon. This piece of code made no difference. :(

 

Can you offer anyother potential solutions? Anyone? :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.