Login   Register  
PHP Classes
elePHPant
Icontem

File: examples.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hadar Porat  >  Cities Israel  >  examples.php  >  Download  
File: examples.php
Role: Example script
Content type: text/plain
Description: Examples
Class: Cities Israel
Generate form select inputs with israeli cities
Author: By
Last change:
Date: 2005-06-23 12:35
Size: 409 bytes
 

Contents

Class file image Download
<?
include('CitiesIsrael.php');

// create object
$citiesIsrael = new CitiesIsrael();

// get city name by id
echo $citiesIsrael -> getCity(13003237);


// creates a form with location select and sub-select box
// location[0] - zone id
// location[1] - city id
?>
<form action="examples.php" name="sdfds">
<?
$citiesIsrael 
-> displaySelectBoxes(32813238);
?>
<input type="submit">
</form>