I almost feel stupid asking this question since I feel I am missing an obvious step but after spending quite some time I still cant figure out whats wrong so pl help
in a form am simply trying to add buttons to let user download some files
at the moment have a blank form only with a submit button
only event is on submit with file downloader
path is ok
file name correct
when I run it
it prompts me with the correct name but when I save it it is downloading it as the contents of the filw within my site as an html page....the name stays the same say a.txt but when I open the downloaded version it starts with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E......
within the division of the form it displays the correct text from the file "test"
but I need it to download a.txt with content only "test"
not the whole html
please tell me what I am doing wrong
thanks
in a form am simply trying to add buttons to let user download some files
at the moment have a blank form only with a submit button
only event is on submit with file downloader
path is ok
file name correct
when I run it
it prompts me with the correct name but when I save it it is downloading it as the contents of the filw within my site as an html page....the name stays the same say a.txt but when I open the downloaded version it starts with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E......
within the division of the form it displays the correct text from the file "test"
but I need it to download a.txt with content only "test"
not the whole html
please tell me what I am doing wrong
thanks