Location: PHPKode > scripts > PHP Voice > php-voice/samples/login_mod.php
<?php

/**
 * Sample usage of the login module
 *
 * @author Ben Yacoub Hatem <hide@address.com>
 * $ version 1.0.0 Sun Nov 14 14:58:09 CET 2004 14:58:09 by hatem
 */

 include ("../vxml.class.php");
 
 $app = new gonx_vxml();

 $app->start_vxml("", "", "", "", "", "2.0");
 $app->start_catch("connection.disconnect"); $app->start_exit_c(); $app->end_catch();
 
 
 // Create choice menu
 $menu_items = array("Welcome"=>"welcome.vxml",
 "Sport"=>"sport.vxml",
 "Music"=>"music.vxml",
 "Login"=>"#login"
 );
 
 $app->load("menu", $menu_items);
 
 
 // Create Login form
  $app->load("login",array("Please enter your 4 digit pin code",4,"submit.php"));
 
 
 $app->end_vxml();

 $app->generate();
 
?>
Return current item: PHP Voice