PHP Classes

File: ejemplo.php

Recommend this page to a friend!
  Classes of Gunther González  >  vRIF  >  ejemplo.php  >  Download  
File: ejemplo.php
Role: Example script
Content type: text/plain
Description: Ejemplo de implementación de la clase
Class: vRIF
Validate identifier of entities in Venezuela
Author: By
Last change:
Date: 16 years ago
Size: 1,185 bytes


Class file image Download
if (isset($_POST["rif"]))
$rif = new vRIF($_POST['rif'],$_POST['empresa']);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Validación de RIF</title>
<?php if (isset($rif->mensaje)) { ?>
<script language="javascript" type="text/javascript">
    alert("<?php echo $rif->mensaje; ?>");
<?php } ?>

    <h1 align="center">Validar RIF</h1>
    <form name="validarRIF" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <table width="30%" border="0" align="center">
                <td width="40%">Empresa:</td>
                <td width="60%">
                    <input name="empresa" type="text" id="empresa">
                    <input name="rif" type="text" id="rif" maxlength="12">
                <td colspan="2" align="center">
                    <input type="submit" value="Consultar">

For more information send a message to info at phpclasses dot org.