I have an html div

<div id="myDiv">
   <table border="1" bgcolor="#FFFFFF" width="600">
          <tr style="text-align:center">
                    	<td>Subject Code</td>
                        <td>Subject Title</td>
                        <td>Credit Hour</td>
          </tr>
</div>

Now, I want to have a button by which i can convert this <div id="myDiv"> to image or .doc....
can any one help me

JavaScript is not able to create an image or doc file. You may need to do it from the server side (convert the data to whatever type you want and stream the data back to the client)...

JavaScript is not able to create an image or doc file. You may need to do it from the server side (convert the data to whatever type you want and stream the data back to the client)...

Can u show me how to do that using PHP??...(though it is JavaScript section, but i didn't know that it can be done with server sided language)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.