phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Web Mobile Intro: Making Simple Web Mobile Application

Tag: web mobile, simulator, application   Category:
post: 04 Apr 2008 read: 368


Web mobile introduction Step By Step Tutorial - Part 2: After install simulator, we will try to build simple web mobile. In this practice, we make 2 page. And look action, how to jump from one to other.

First, create a file named "test.php" within www/test/mobile. Enter following code:


<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML mobile 1.0//END" "http://www.wapforum.org/DTD/xhtml-mobile0.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>My First Mobile Web App</title>
  </head>
  <body>
    <h1>Hi..<?=$_GET['name']?></h1>
    You enter the site at <?=date("d-M-Y h:i:s")?>
    Refresh this page by click <a href="test.php">here</a>
    or <a href="test2.php">test</a>   
  </body>
</html>

Next, create a file named "test2.php". Enter following code:


<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML mobile 1.0//END" "http://www.wapforum.org/DTD/xhtml-mobile0.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Page #2</title>
  </head>
  <body>
    <h1>Hi..<?=$_GET['name']?></h1>
    You enter the site at <?=date("d-M-Y h:i:s")?>
    Refresh this page by click <a href="test2.php">here</a>
    or <a href="test.php">test</a>   
  </body>
</html>


Series this article:
Web Mobile Intro: Simulator
Web Mobile Intro: Making Simple Web Mobile Application
Web Mobile Intro: Testing Web Mobile Use Openwave Simulator

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting