PHP Classes

HTML Language Selector for OnTime: Select the language of texts to display on a page

Recommend this page to a friend!
  Info   View files Example   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 17 All time: 11,059 This week: 106Up
Version License PHP version Categories
html-lenguage-select 1.0Proprietary Licen...5HTML, PHP 5, Databases, Traits


This package can show how to select the language of texts to display on a page.

It provides a class that extends the OnTime package class and its traits to set the language that should be used to retrieve the texts that can be used on the current page.

The package comes with an example that uses PHP sessions to store and retrieve the language that is selected to display the page texts.

Picture of Mario Carrocera
  Performance   Level  
Name: Mario Carrocera is available for providing paid consulting. Contact Mario Carrocera .
Classes: 18 packages by
Country: Mexico Mexico
Age: 58
All time rank: 314536 in Mexico Mexico
Week rank: 568 Up8 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x


//ini_set('display_errors', true);
//error_reporting(E_ERROR | E_PARSE | E_NOTICE | E_WARNING);

function clean_input($data){$data=trim($data);$data=stripslashes($data);$data=htmlspecialchars($data);return $data;}
session_name ('mg');
if ( ! isset (
$_SESSION["iniciada"]) ) {
$_SESSION["iniciada"] = 'Yes';
$_SESSION['leng'] = 'none';

$_SERVER["REQUEST_METHOD"]=="GET"){ if(isset($_GET["leng"])) {
$_SESSION['leng'] = clean_input($_POST["forma"]);}}

$html = new html();

<!DOCTYPE html>
    <?php $html->Getheader();

  Files folder image Files  
File Role Description
Accessible without login Plain text file HtmlPage.php Example Example script 5799KB
Downloadhtml-lenguage-select-2021-06-07.tar.gz 5803KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
HTML Metatags using PHP on Time Download .zip .tar.gz Implement HTML Tags Optional
HTML Google Fonts using PHP on Time Download .zip .tar.gz Implement Google Font on HTML Optional
HTML CSS Styles using PHP on Time Download .zip .tar.gz Implements Css Html Optional
HTML LayOut using PHP on Time Download .zip .tar.gz Implement Layout Optional
HTML Nav bar using PHP on Time Download .zip .tar.gz Implements a Nav Bar Optional
HTML Include Images and Text using PHP on Time Download .zip .tar.gz Implements a image & text Optional
PHP Creative Commons Logo Download .zip .tar.gz nice tool Recommended
PHP NoSQL Database OnTime Download .zip .tar.gz NoSQL Database Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:11,059
This week:106Up