Heya, Im kind of a newbie with classes and I was wondering is there a way I can get the POST to echo into my object here?
PHP Code:
$name = $_POST['name'];
// See how I try to echo it into there at the end for the value??
$form->make('Name', 'name', 'text', '25', echo $name);
This is the class but I don't think you need to see it
PHP Code:
// The part of the class is here:
function make($title, $name, $type, $size, $value) {
$this->form .= "<label for=\"$name\">$title</label> \n";
$this->form .= "<input type=\"$type\" name=\"$name\" value=\"$value\" size=\"$size\" /><br /> \n\n";
}
Bookmarks