PHP Classes

File: examples/inputbox.php

Recommend this page to a friend!
  Classes of Michele Brodoloni   PHP Dialog   examples/inputbox.php   Download  
File: examples/inputbox.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Dialog
Create console based UIs with the dialog program
Author: By
Last change:
Date: 12 years ago
Size: 269 bytes


Class file image Download

require_once '../include/class.dialog.php';

$dialog = Dialog::factory('inputbox', array(
'backtitle' => 'Input Box'

$dialog->setCaption('What is your name?');
$name = $dialog->show();

"\n\nYour name is: '$name'\n\n";