Login   Register  
PHP Classes
elePHPant
Icontem

File: example-translate-es.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Unay Santisteban  >  Language Replace  >  example-translate-es.php  >  Download  
File: example-translate-es.php
Role: Example script
Content type: text/plain
Description: example
Class: Language Replace
Replace strings with language translations
Author: By
Last change: Update example-translate-es.php
Date: 8 months ago
Size: 729 bytes
 

Contents

Class file image Download
<?php 
session_start
();
$_SESSION['language'] = "es_ES";
include 
'languages.class.php'

?>
<!DOCTYPE html>
<html>
    <head>
        <title>Language Replace</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
    </head>
    <body>
    <form action="" method="POST">
        <label for="username"><?php languages::translate('USERNAME'?>:</label>
        <input type="text" name="username" id="username"><br>
        <label for="password"><?php languages::translate('USERPASS'?>:</label>
        <input type="password" name="password" id="password"><br>
        <input type="submit" name="login" value="<?php languages::translate('LOG_IN'?>">
    </form>
    </body>
</html>