Pages

Thursday, November 8, 2012

Wordpress plugins posting form or data to another Page in plugin

Wordpress plugins posting form or data to another Page in plugin

 <form id="mikex-settings" action="<?php echo plugins_url('update.php', __FILE__) ?>">  
   <label>Search Text:</label> <input name="search" value="<?php echo $options['search'] ?>" type="text" /><br />  
   <label>Replace Text:</label> <input name="replace" value="<?php echo $options['replace'] ?>" type="text" /><br />  
   <label>Replace Color</label> <input name="replace-color" value="<?php echo $options['replace-color'] ?>" type="text" /><br />  
   <label>Toggle Color:</label> <input name="toggle" value="<?php echo $options['toggle'] ?>" type="text" /><br />  
   <input type="submit" value="Update" /><span class="update-status"></span>  
 </form>  


In this way we an call another page to show up completely of a plugin in case of searchboxes etc

1 comment:

  1. Good article

    https://wordpress-special-plugin.blogspot.co.id

    ReplyDelete