Blog
Author Archive
In the new-connection.php file provided by Coding Dojo which allows me to connect to a MySQL database, make …
Read more
<input type=’hidden’ name=’action’ value=’register’>
if(isset($_POST[‘action’]) && $_POST[‘action’] == ‘register’))
{
//call to validations here
}
<?php
session_start();
/*
If statement below saves a random number as session variable
so it won’t change when a form is submitted multiple times
until …
Read more
<?php
session_start();
$errors = array();
// If statement checks if some text has been submitted as an email and isn’t null
if(isset($_POST[’email’]) && $_POST[’email’] …
Read more
// Check if a string is a palindrome
function palindromeCheck(palindrome) {
var arr = palindrome.split(“”);
var reverseArr = arr.reverse();
var reverseArrJoin = reverseArr.join(“”);
if(palindrome == …
Read more