Hi
 
I am using Emberl 1.2.0.
 
This is the probleme :
I have a form with a submit bouton to download some data ( or a file ). I want that the user can save these data.
When I submit it, the header that I want to send to generate the download is printed in the page ( ...and the data too ) and after its the html part.
 
What's wrong ? The header ? The Method ?
 
Thanks
 
 
-------------------------------------------------------------------------------------------------------------------------------------------------
 
The result is :
 
Content-type: application/octet-stream Content-Transfer-Encoding: binary Content-Disposition: attachment; filename="logs.txt" one lineone lineone lineone lineone lineone lineone lineone lineone lineone lineone lineone lineone lineone lineone line etc...
 
...and the html part
 
The file "this_file.epl" :
 
[- if ( $fdat{'export'} ) {
    
    print "Content-type: application/octet-stream\n";
    print "Content-Transfer-Encoding: binary\n";
    print "Content-Disposition: attachment; filename=\"logs.txt\"\r\n\r\n";
    while ($cpt<30) {
            print "one line";
            $cpt++;
        }
      }
-] 
 
 
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
  
 </HEAD>
<BODY BACKGROUND="gfx/fond3.jpg" >
 
<FORM METHOD=post enctype="multipart/form-data" ACTION="this_page.epl" >
 
bla bla
 
<INPUT TYPE=submit NAME="export" VALUE="export">  
</FORM>
  
</BODY>
</HTML>
 
Philippe GOBIN
 
France Telecom Hosting
Direction des Développements Applicatifs
Tel : 01 46 12 68 05
Fax : 01.46.12.67.00
Hotline : 0810 777 000
Site internet : http://www.fth.net  
Les offres de FTH : http://extranet.fth.net
 
 

Reply via email to