Skip to content

Instantly share code, notes, and snippets.

View informagenie's full-sized avatar

Mbungu Ngoma informagenie

View GitHub Profile
@informagenie
informagenie / validation.php
Last active April 11, 2018 18:06
Form validation
<?php
function show_error($key)
{
global $errors;
return !empty($errors[$key]) ? '<div class="error">'. $errors[$key] .'</div>' : '';
}
if(!empty($_POST))
{