Login   Register  
PHP Classes
elePHPant
Icontem

File: fClassHTML/example/inputLogin/index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dario Mazzeo  >  fClassHTML  >  fClassHTML/example/inputLogin/index.php  >  Download  
File: fClassHTML/example/inputLogin/index.php
Role: Example script
Content type: text/plain
Description: Esempio di Form per login
Class: fClassHTML
Display composite Web page elements
Author: By
Last change:
Date: 2008-06-05 07:06
Size: 700 bytes
 

Contents

Class file image Download
<?php

include (realpath(dirname(__FILE__).'../../../../sClassHTML/sClassHTML.php'));
include (
realpath(dirname(__FILE__).'../../../fClassHTML.php'));

// creazione pagina
$mypage = new sHtml("Benvenuto");

// aggiunta Css alla pagina
$mypage->addCss('../../css/inputLogin.css');

// creazione form di login
$form = new inputLogin();
$campi = array('index.php''Login:''Password:');
$form->addFields($campi);

// aggiunta del form alla pagina
$mypage->addObj($form);

// stampa della pagina
echo $mypage;

// verifica dei dati
if ($_POST['login']=='dario' && $_POST['password']=='mazzeo')
    echo 
'Login effettuato correttamente.';
else
    echo 
'Login e password errate';
?>