<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
</head>

<template>
	<do type="prev" label="Lessons">
		<go href="./"/>
	</do>
</template>

<card id="main" title="06: Scripts">

<p>
Server-side scripts
</p>

<p>
Scripts will be written using PHP and will have .php extensions
because that's what I know. Deal with it.
</p>

<p>
It is important that I do not forget to set the output
mimetype correctly. The correct MIME types are:<br/>
- text/vnd.wap.wml (for WML)
</p>

<p>
GET and POST requests work the same on WAP as on HTTP. The
regular $_GET and $_POST arrays should work normally and require
the usual validation.
</p>

<p>
<a href="05-mtu.wml">05: MTU</a><br/>
<a href="07-forms.wml">07: Forms</a><br/>
<a href="#glossary">Glossary</a><br/>
</p>

</card>

<card id="glossary" title="Glossary for C-06">

<p>
<u>PHP</u>: Programming language commonly used for server-side
script execution for both HTML and WAP websites.
</p>

<p>
<u>Script</u>: Text-based code programmed to perform a
function on either the server or the client.
</p>

<p>
<u>Request</u>: how your device requests data from a server
or submits to it (and gets a response back). Traditionally
there's GET and POST request types.
</p>

<p>
<a href="#main">Exit glossary</a>
</p>

</card>

</wml>
