NEWT_FORM_RUN(3) 1 NEWT_FORM_RUN(3)newt_form_run - Runs a formSYNOPSIS
void newt_form_run (resource $form, array &$exit_struct)
DESCRIPTION
This function runs the form passed to it.
PARAMETERS
o $form
- Form component
o $exit_struct
- Array, used for returning information after running the form component. Keys and values are described in the following table:
Form Exit Structure
+----------+--------------------------------------+---+
|Index Key | | |
| | | |
| | Value Type | |
| | | |
| | Description | |
| | | |
+----------+--------------------------------------+---+
| reason | | |
| | | |
| | integer | |
| | | |
| | The reason, why the form has been | |
| | exited. Possible values are defined | |
| | here. | |
| | | |
| watch | | |
| | | |
| | resource | |
| | | |
| | Resource link, specified in | |
| | newt_form_watch_fd(3) | |
| | | |
| key | | |
| | | |
| | integer | |
| | | |
| | Hotkey | |
| | | |
|component | | |
| | | |
| | resource | |
| | | |
| | Component, which caused the form to | |
| | exit | |
| | | |
+----------+--------------------------------------+---+
RETURN VALUES
No value is returned.
SEE ALSO newt_run_form(3).
PHP Documentation Group NEWT_FORM_RUN(3)
Check Out this Related Man Page
FORMS(3) BSD Library Functions Manual FORMS(3)NAME
field_count, form_fields, move_field, set_form_fields -- form library
LIBRARY
Curses Form Library (libform, -lform)
SYNOPSIS
#include <form.h>
int
field_count(FORM *form);
FIELD **
form_fields(FORM *form);
int
move_field(FIELD *field, int frow, int fcol);
int
set_form_fields(FORM *form, FIELD **fields);
DESCRIPTION
The field_count() function returns the number of fields that are attached to the given form, if the form argument passed is NULL then
field_count() will return -1. The function form_fields() will return a pointer to array of attach fields for the given form, this array is
not NULL terminated, fields may be attached to the given form by calling set_form_fields(). The fields argument in this function is a
pointer to a NULL terminated array of fields that will be attached to the form. If there are already fields attached to the form then they
will be detached before the new fields are attached. The new fields given must not be attached to any other form. The move_field() function
will move the given field to the location specified by frow and fcol.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following
error values:
E_OK The function was successful.
E_CONNECTED The field is connected to a form.
E_POSTED The form is currently posted to the screen.
E_BAD_ARGUMENT The function was passed a bad argument.
SEE ALSO curses(3), forms(3)NOTES
The header <form.h> automatically includes both <curses.h> and <eti.h>.
BSD January 1, 2001 BSD
My form validation script looks like this of the form like this....
<html>
<form method="POST" action="">
<table >
<tr>
<td >Name:</td>
<td ><input type="text" name="name" size="30%"></td>
</tr>
<tr>
<td >Phone:</td>
<td ><input type="text" name="phone" size="30%"></td>
</tr>... (0 Replies)
I would like to automate form filling in a remote way... i mean in the background. That form consists of 3 pages (need to be traversed by clicking on a "next" button). Form uses JavaScript as well.
The scripts I have access to are perl/Unix shells
I google'd and found that in perl it can be... (0 Replies)