Hi Chaps, I have a HTML table, and need to export the contents, with formatting to MS Excel. Does anyone know of a simple way to do this?
Not sure I understand you. Do you need to do this programmatically for visitors of a website that you own? Or do you just have a table that you want to capture/put data into Excel for yourself. If it's the latter (that's how I read your post, anyway), try this FF add-on: https://addons.mozilla.org/en-US/firefox/addon/7271
just use fopen and name it something.csv $data = 'd1'.','.'d2'."\n" $fileConn = fopen($excel_file,"a"); fwrite($fileConn, $data); Code (markup):