Posts

Showing posts from July, 2025

Don’t step into Edo without my approval – Gov Okpebholo tells Peter Obi

 Edo State Governor, Monday Okpebholo, has issued a strong warning to the 2023 Labour Party presidential candidate, Peter Obi, cautioning him against entering the state without prior notification and approval. Governor Okpebholo’s warning marks the second time Obi has been cautioned by an All Progressives Congress, APC-led state over visits, including those reportedly for humanitarian purposes.

Remove Index Php From URL Page On Your Website

Create a file name func. php >> Paste this code in the func. php file <?php if (strpos($_SERVER['REQUEST_URI'],'index.php') !== FALSE ) {     $new_uri = preg_replace('#index\.php\/?#', '', $_SERVER['REQUEST_URI']);     header('Location: '.$new_uri, TRUE, 301);     die(); } ?> Step2:  * Create a folder name about-us * Open the new folder you created. * Inside this folder , create a new file name⁣⁣ index. php⁣⁣. * Open the new file index you just created. * Copy & Paste this code at line 1 (first line) <?php include ("../func.php"); ?>

Create PHP Email Contact Form

 To send an email with PHP and the simplest way to do this is to send a text email when a visitor to your website fills out a form. Create a file name contactform.php Copy and Paste this in contactform php file [code]<?php if (isset($_POST["submit"])) { $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $human = intval($_POST['human']); $from = $email;  // WARNING: Be sure to change this. This is the address that the email will be sent to $to = 'YOUR_SPECIFIED_EMAIL_ADDRESS';  $subject = "Message from ".$name." "; $body = "From: $name\n E-Mail: $email\n Message:\n $message";   // Check if name has been entered if (!$_POST['name']) { $errName = 'Please enter your name'; } // Check if email has been entered and is valid if (!$_POST['email'] || !filter_var($_POST['email'], FILTER_VALIDATE...