Posts

 How to redirect with java script <?php require('config.php'); SESSION_start(); print_r($_SESSION); if(empty($_SESSION['username']) ) { echo "hello"; echo "<script> window.location = 'http://gm.roomonrentjodhpur.com/admin/login.php';</script>"; } ?>

Captcha Code In PHP

php and html Code  <?php //Random Number Generation $rand=substr(rand(),0,4);//only show 4 numbers ?> <form method="post" action="<?php $_SERVER['PHP_SELF']?>" name="form1"> <table> <tr> <td>Name:</td> <td><input type="text" name="name"> <span id="name" class="color"></span> </td> </tr> <tr> <td>Enter Captcha</td> <td><input type="text" name="chk" id="chk"> <span id="error" class="color"></span> </td> </tr> <tr> <td>&nbsp;</td> <td><input type="text" value="<?=$rand?>" id="ran" readonly="readonly" class="captcha"> <input type="button" value="Referesh" onclick="captch()" /></td...
Image
How To Submit Form Without Page Refreshing with jQuery In PHP ? 1 Create a form for submit data like below  refreshform.html <!DOCTYPE html> < html > < head > < title > Submit Form Without Refreshing Page </ title > < script src = " http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js " > </ script > < link href = " css/refreshform.css " rel = " stylesheet " > < script src = " js/refreshform.js " > </ script > </ head > < body > < div id = " mainform " > < h2 > Submit Form Without Refreshing Page </ h2 > <!-- Required Div Starts Here --> < form id = " form " name = " form " > < h3 > Fill Your Information! </ h3 > < label > Name: </ label > < input id = " name " placeholder = " Your Name " type = " text " > <...