Skip to main content

Posts

How To Validate Email and Url In Php

Validate Email Address In Php $email = test($_POST["email"]); if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {   $emailError = "Invalid email format"; } Validate Url In Php $website = test($_POST["website"]); if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$website)) {   $websiteError = "Invalid URL"; } thank you team gajabwap web in hindi

How to Create Meta Tag Generator Tool With Angular Js

Simple Meta Tag Generator Tool With Angular Js Demo- Meta Tag Generator With Angular Js <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <body> <div ng-app=""> <p>Title: <input type="text" ng-model="title" placeholder="Enter name here"></p> <p>Description : <input type="text" ng-model="description" placeholder="Enter name here"></p> <p>Keywords : <input type="text" ng-model="keywords" placeholder="Enter name here"></p> <p>Author : <input type="text" ng-model="author" placeholder="Enter name here"></p> <p>Country : <input type="text" ng-model="country" placeholder="Enter name here"></p> <textarea> ...

How to Check Website Availability with PHP

Hello friends ajj me apko btaunga ki kis parkar ham check kar sakte hai ki website is available or not. Demo- check website is Available or Not <form action="" method="post"> Enter Website Url<input type="text" name="name"><br> <input type="submit" name="submit"/> </form> <?php error_reporting(0); function Siteexist($url){        // Initialize cURL     $curlInit = curl_init($url);       // Set options     curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);     curl_setopt($curlInit,CURLOPT_HEADER,true);     curl_setopt($curlInit,CURLOPT_NOBODY,true);     curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);     // Get response     $response = curl_exec($curlInit);       // Close a c...

Simple Search Bar With Php & Mysql

<html> <title></title> <head> </head> <body> <fieldset> <form action="" method="POST"> <center><h3> Check Result</h3></center> <center> Search<br> <input type="text" name="rolld" > <br><br> <input type="text" name="dob"> <br><br> <input type="submit" name="submit"> </center> </form> </fieldset> </body> </html> <center> <?php error_reporting(0); $conn = mysqli_connect("localhost", "root", "","schoolreult"); //search code //error_reporting(0); if($_REQUEST['submit']){ $name = $_POST['name']; $result=$_POST['result']; $rolld=$_POST['rolld']; $fathername=$_POST['fathername']; $dob=$_POST['d...

How To Get Factorial Of Any Number In Php

Simple Factorial Program In Php <?php   if(isset($_POST['submit'])){ $num = $_POST['num']; $factorial = 1; for ($x=$num; $x>=1; $x--)   {     $factorial = $factorial * $x;   }   echo "Factorial of $num is $factorial";   } ?>   <form action="" method="POST"> <input type="text" name="num"> <input type="submit"  value="submit" name="submit"> </form> Thank You Team Gajabwap Web In Hindi

How To Create Live Word Counter With Javascript

Live Word counter Kaise Bnaye-ajj me apko btaunga ki kis trah aap sirf 2 minutes me javascript live word counter bana sakte ho. demo- <head> <script> function countcharacter(count){     document.getElementById("word").innerHTML = count.value.length; } </script> </head> <body> <textarea name="message" onkeydown="countcharacter(this);"></textarea> <font color="red"><p id="word"> </p></font> </body> </html> javascript word count word count code in javascript javascript character count word count validation in jquery input word count javascript write a javascript program to count number of words in string jquery count words in div textarea character count javascript Thank You Team Gajabwap Web In Hindi

How To Send Email In Codeigniter

Hello friends ajj me apko btaunga ki ham codeigniter framework me kis trah se email send kar sakte hai easily. Yanha sabse pehle ham email library ko load karwayege jiski madad se ham codeigniter me email send kar payege Send text mail- $this -> load -> library ( 'email' ); $this -> email -> to ( 'recipient@example.com' ); $this -> email -> from ( 'yourmail@gmail.com' , 'formname' ); $this -> email -> subject ( 'Test Email (TEXT)' ); $this -> email -> message ( 'Text email testing .' ); $this -> email -> send (); Send   mail to multiple recipient- $this -> email -> to ( 'first@example.com, second@example.com, three@example.com' ); Send html mail- $htmlContent  =  'HTML email testing' ; $htmlContent  .=  'enter content in this email' ;      $config [ 'mailtype' ] =  'html' ; $this -> email ->...