Related Articles
How to Call a PHP Page Using jQuery
You can able to call PHP page/HTML page using jQuery function by including jQuery library. Check the below example to call a PHP file using jQuery function: You can display the PHP page which is called from jQuery function in the current page as below:
How to Get MySql Query Result as an Email
If you are working on a big mysql query and want to get the mysql query as email when it finishes use the below trick. Go to mysql command:Set pager directive: mysql> pager mail -s “subject” emailme@domain.comPAGER set to ‘mail’ -s “subject” emailme@domain.com The trick uses pager directive to redirect the query output result to […]
Simple PHP Dropdown Menu Example
<html> <title>PHP Dropdown Menu Example</title> <head></head> <body> <form method=”POST” action=”phpdropdown.php”> <select name=”user”> <option value=”vivek” selected=’selected’>Vivek</option> <option value=”Raj”>Raj</option> <option value=”Vicky” >Vicky</option> </select> <input type=”submit” name=”go” value=”Go”> </form> </body> </html> <?php if(isset($_POST[“user”])) { $user = $_POST[“user”]; echo $user; } ?> To get selected value use this < option value=”vivek” selected=’selected’>Vivek </ option> Use this at top for […]