The fastest easiest way to get it right.

form

NAME

androHTML/form

FUNCTION

The PHP method form creates an HTML FORM node, adds it as a child to the current node, and returns a reference to it.

All inputs are optional.

INPUTS

string $name - the name of the form. Default: "Form1" string $method - the method (GET or POST). Default: POST string $action - the URI to route to. Default "index.php" string $x6page - the value of x6page to go to, defaults to none.

SOURCE

function &form($name='Form1',$method='POST',$action="index.php",$x6page=''){
    $form = $this->h('form');
    $form->hp['id']     = $name;
    $form->hp['name']   = $name;
    $form->hp['method'] = $method;
    $form->hp['action'] = $action;
    $form->hp['enctype']="multipart/form-data";
    if($x6page <> '') {
        $symbol = strpos($action,'?')===false ? '?' : '&';
        $form->hp['action'].=$symbol."x6page=".$x6page;
    }
    return $form;
}

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2