name = $name; $this -> submit = $submit; } public function validate(){ if ($_SERVER['REQUEST_METHOD'] == 'GET'){ $name = $_GET['name']; echo $name.' '; echo 'cool name noob'; } } } $a1 = new begintest(); $a1 -> validate(); ?>
Aucun commentaire:
Enregistrer un commentaire