Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to create login page with session in wordpress.

create login page with session in wordpres <?phpsession_start();if (isset($_SESSION[‘ID’])){ echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-dashboard”;</script>’;} <?php if(isset($_POST[‘submit’])) { $email=$_POST[’email’]; $password=$_POST[‘password’];                 global $wpdb;      

Read More »

How to use jquery on checkbox in worpdress ?

How to use jquery on checkbox in worpdress ? <html lang=”en”> <head> <meta charset=”utf-8″> <title>Check the Status of Checkboxes</title> <script src=”https://code.jquery.com/jquery-1.12.4.min.js”></script> <script type=”text/javascript”> $(document).ready(function(){ $(‘input[type=”checkbox”]’).click(function(){ if($(this).is(“:checked”)){ alert(“Checkbox is checked.”); }

Read More »

How to upload file into wordpress child theme folder in wordpress ( file upload) ?

upload file into wordpress child theme folder in wordpress ( file upload) if(isset($_POST[“submit_p_img”])){ $filename = $_FILES[“p_img”][“name”]; $tempname = $_FILES[“p_img”][“tmp_name”]; echo $folder =  $_SERVER[“DOCUMENT_ROOT”].”/messanger/wp-content/themes/twentytwenty-child/pimg/”.$filename; move_uploaded_file($tempname,$folder); }

Read More »