略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: newt_form

2024-12-25

newt_form

(PECL newt >= 0.1)

newt_formCreate a form

说明

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

Create a new form.

参数

vert_bar

Vertical scrollbar which should be associated with the form

help

Help text string

flags

Various flags

返回值

Returns a resource link to the created form component, or FALSE on error.

范例

Example #1 A newt_form() example

Displays a single button "Quit", which closes the application once it's pressed.

<?php
newt_init
();
newt_cls();

$myform newt_form();
$button newt_button (512"Quit");

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

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

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.newt-form.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3