Search This Blog

Sunday, August 7, 2011

Download Database DATA From HTML to EXCEL File.. Best Working

For work with this code just copy this code and put it at the page which you want to download. its catch all the data of the page.. 

<?php
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=filename.xls");
header("Pragma: no-cache");
header("Expires: 0");
?>

Best Working and Helpful code for PHP Coders...

For more information checkout our official website.
Hire Web designer

Saturday, August 6, 2011

Link to new page in Dropdown menu Best Working

<form action="../"> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
                                        <option value="">Please Select Product</option>
                                        <option value="http://www.shreejiinfotek.com" style="font-weight: bold;">nirav panchal</option>
                                            <option value="http://www.shreejiinfotek.com">nirav panchal </option>
                                    </select>
                                </form>

Search image by its name Very Best Working

<script language=JavaScript1.1>
  
  
    // ************************* pre-cache five actor pictures
  
    image1 = new Image()
    image1.src = "images/1/1.jpg"
    image2 = new Image()
    image2.src = "images/1/2.jpg"
    image3 = new Image()
    image3.src = "images/1/3.jpg"
    image4 = new Image()
    image4.src = "images/1/4.jpg"
  
    function Bond_pictures(list) {
  
    /*List is an object and not a variable. The code below turns
    it into a variable.*/
  
    var img = list.options[list.selectedIndex].value;
  
    //list.selectedIndex can go from 1 to 5.
  
    document.bond_frame.src = eval(img + ".src");
  
    }
    </script>

<div class="search-area" align="right">
<form>
Search Model Number  <select onchange=Bond_pictures(this) name=cached>
<option onclick="showHide(1);" selected>Please Select
<option value=image1 onclick="showHide(1);">Totalizers
<option value=image2 onclick="showHide(1);">Preset Counters
<option value=image3 onclick="showHide(1);">Digital Panel
Meters
<option value=image4 onclick="showHide(1);">Special Function
Controls
</OPTION>
</SELECT>
</FORM>
</div>
<div>
<img src="images/1.jpg" width=136 name=bond_frame>
</div>