Can we buid a template that work for mobiles and PC ? ! for example this is the source code of that page that i want use that : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>pc view</title> </head> <body> <p>sample text for show on pc </p> </body> </html> <wml> <card id="index" title="WAP showen" newcontext="true"> <p align="center"> sample text that shown on mobile browser </p> </card> <card id="about" title="About Me"> <p>my name is LOL man<br/> You can scroll down the screen, of course. </p> </card> </wml>
Use handsetdetection.com and then send the user to the appropriate site / view based on their device..
you can always make a mobile and pc use for your user. if a user is on a mobile, you can ask them to go to domain.com/m. there, you can do the necessary xml format type of your site while leaving your original website alone.
My system crashed not long ago and I lost all my data, but I had a simple .htaccess file redirecting surfers to an appropriate page according their browser or mobile devices. It is available somewhere inside this www.hotscripts.com/PHP/Scripts_and_Programs/WAP_and_WML/index.html or any other of the PHP-related sections, don't remember.