Download an Excel File.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thanawala27
    New Member
    • Mar 2007
    • 68

    Download an Excel File.

    Hi.

    I want to download an Excel file from the server and am using the following code.

    Code:
    <input type=button value="Click To Download" onClick="location.href='Logs.xls'">
    On clicking this button, I get the following Error.

    exec of /tmp_mnt/org/www/cgidir/dev_cgitools/Codeplug/Logs.xls failed (Exec format error)

    I read about Exec Formet Error, and found that Excel seems to be an invalid format. I have no clue why the excel file is not working for this particular operation because, it works fine while uploading data in the same excel file.

    Any help is appreciated.


    Thanks,

    Ravi
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    This is the perl forum. What does your question have to do with perl?

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      I agree with Kevin. Unless you have a Perl question, this question is going to get moved.

      Regards,

      Jeff

      Comment

      Working...