#native_company# #native_desc#

Building WML Sites Page 4

By Andres Baravalle
on February 21, 2001

The next page is called index2.wml
and allows you to decide whether you want to query
the database by subject or by surname.


Header("Content-type: text/vnd.wap.wml");

Header("Cache-Control: no-cache, must-revalidate");

Header("Pragma: no-cache");

echo (
"<?xml version='1.0'?>");





<card id="card2" title="Kind of research"> 



echo ("You are checking ");

if ($choice == "exams_data") {

    echo (
" examinations timetables.<br />n");

} else if (
$choice == "consulting_data") {

    echo (
" consulting hours.<br />n");

} else {

    echo (
"I don't know what and there is some problem.<br />n");




<p> You can search by surname (either exact or partial)

  or by subject (either exact or partial).<br /> 

  Select the kind of research.</p> 


<select name="<?php echo ("$choice");?>" value="surname" title="research"> 

<option value="surname"> professor's name</option> 

<option value="subject"> subject</option> 

<do type="text" label="Go"> 

<go method="get" href="index3.wml#card3"> 


echo ("<postfield name="$choice" value="$"."$choice".""/>");

echo (
"<postfield name="choice" value="$choice"/>");








Again the decision is stored into variable $choice.