print a text box : Form « Form « PHP

print a text box

function input_text($element_name, $values) {
    print '<input type="text" name="' . $element_name .'" value="';
    print htmlentities($values[$element_name]) . '">';

Related examples in the same category

1.print a radio button or checkbox
2.print a select menu
3.print a submit button
4.print a textarea
5.HTML elements for use in forms
6.HTML Form Elements
7.HTML form for submitting data
8.Working with Multipage Forms
9.Process the results