Newt 関数
PHP Manual

newt_form

(PECL newt >= 0.1)

newt_form — フォームを作成する

説明

resource newt_form ([ resource $vert_bar [, string $help [, int $flags ]]] )

新しいフォームを作成します。

パラメータ

vert_bar

フォームに関連付けられる垂直スクロールバー。

help

ヘルプ文字列。

flags

さまざまなフラグ。

返り値

作成されたフォームコンポーネントのリソースリンク、 あるいはエラー時に FALSE を返します。

例

例1 newt_form() の例

"Quit" ボタンを表示し、それが押されるとアプリケーションを 終了させます。

<?php
newt_init
();
newt_cls();

$myform = newt_form();
$button = newt_button (5, 12, "Quit");

newt_form_add_component ($myform, $button);
newt_refresh ();
newt_run_form ($myform);

newt_finished ();
newt_form_destroy ($myform);
?>

参考


Newt 関数
PHP Manual