Here is my code, greatly truncated.
<?php
session_start();
header("Content-Type: application/msword");
header('Content-Disposition: attachment; filename="Contrat d\'étude.doc"');
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<p align="right">Version: A</p>
<img src="img/logoPoly.png" alt="École Polytechnique de Montréal" />
<h1>CONTRAT D'ÉTUDES HORS QUÉBEC</h1>
............
I try here adding the image using the regular img tag, but once on the user's computer, the path doesn't work, obviously.. So how can I go about this?
And btw, is the meta tag the good way of setting the charset? Or is there a better way, perhaps using the php header function?
Thanks for helping out!