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: 11 years ago
Size: 269 bytes
 

Contents

Class file image Download
#!/usr/bin/php
<?php

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

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

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

system('clear');
echo
"\n\nYour name is: '$name'\n\n";