PHP Classes

File: post.php

Recommend this page to a friend!
  Classes of Bruno Henrique Ferreira de Oliveira   Simple Instant JSON   post.php   Download  
File: post.php
Role: Class source
Content type: text/plain
Description: The main class.
Class: Simple Instant JSON
Authenticate users and respond with a JSON result
Author: By
Last change:
Date: 8 years ago
Size: 400 bytes
 

Contents

Class file image Download
<?php

main
::run();

class
main {

static function
run(){

$cont=0;

if(isset(
$_POST['login']) && isset($_POST['senha'])){
$cont=1;
$login=$_POST['login'];
$senha=$_POST['senha'];
$msg = array();
$msg['MENSAGEM']="".$login." não existe, cadastre-se para acessar";
$msglogin = (json_encode($msg));
print_r($msglogin);
}

if(
$cont==0){
header("Location:home.html");
}
}
}

?>