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 logout page with session in wordpress?

Create logout page with session in wordpress <?php session_start(); session_destroy(); session_unset(); //echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’”;</script>’; if(!isset($_SESSION[‘ID’])){  echo ‘<script LANGUAGE=”JavaScript”>window.location.href=”‘.site_url().’/login-form”;</script>’; } ?> <script>     location.reload(); </script>

Read More »

How to submit form with anchor tag (link) in jquery?

 Submit form with anchor tag (a and link) in jquery <form method=”get” action=””> <input type=”text” name=”ID” value=”jassi”> <input type=”text” name=”con” value=”singh”> <a href=”” onclick=”this.closest(‘form’).submit();return false;” value=”CONSTRUCTION CONTRACT”>CONSTRUCTION CONTRACT</a> </form>  Submit

Read More »

How to pass variable id through href in php

<table class=”table table-hover”> <thead> <tr> <th>Subject</th> <th>Add Topic</th> </tr> </thead> <tbody> <tr> <?php foreach($subjects as $sub):?> <td><?php echo $sub->subject;?></td> <td><a href=’approve.php?id=”.$sub->id.”‘ role=”button” class=”btn”>Add Topic</a></td> </tr> <?php endforeach;?> </tbody></table>

Read More »

How to get(search) record in table with ajax via dropdown?

get(search) record in table with ajax via dropdown Use in main file which you will create  <script src=”<?php echo plugin_dir_url(__FILE__);?>/js/jquery.min.js”></script><script> jQuery(document).ready(function($){ $(“.selectcustomer”).change(function(){ var name = $(“.selectcustomer”).val(); /* alert(name); */ var

Read More »