<header> <h1>FocusPHP</h1> </header> <nav> <button class="c1 ">Registrate</button> <button class="c2">Ingresar</button> <div class="regis l1"></div> <div class="login l2"></div> </nav> <?php include "APP/login.php"; $b = new app("Amigos", "email varchar(100) COLLATE utf8_spanish_ci NOT NULL," . "PRIMARY KEY (email)"); //Crear un formulario para ingresar $b->putFormRegis(".regis", "index.php"); $b->putFormlog(".login", "index.php"); if ($b->loging() == "true") { $x = new seccion($b->email(), $b->pass()); $x->mkjsPHP(";", $b->mkjqueryPHP("nav")); $x->redir_seccion_form("nav", "web1.php", "web1!"); echo "Welcome " . $x->name() . "!."; } ?> </body> <script> var a=new fast_appi('c','l'); a.run(); </script> </html>