Благодарим за сотрудничество

Благодарим за сотрудничество

[exec]
if (isset($_GET[‘download’])) {
//Скачка файла
Header(«Content-Type: x-force-download»);
Header(‘Content-Disposition: attachment; filename=»http://cfd-gas.ru/pasport.docx»‘);
readfile(«http://cfd-gas.ru/pasport.docx»);
}
else {
header(‘Content-Type: text/html; charset=utf-8’);
ini_set(«display_errors»,1);
error_reporting(E_ALL);
[/exec]

[exec]
$template = file_get_contents(«http://cfd-gas.ru/pasport.xml»);

// $template = str_replace(«», (int)$_POST[‘avs1’], $template);
// $template = str_replace(«», (int)$_POST[‘avs2’], $template);
// $template = str_replace(«», (int)$_POST[‘avs3’], $template);

$template = str_replace(‘‘, ‘‘.(int)$_POST[‘avs1′].’‘, $template);

file_put_contents(«http://cfd-gas.ru/pasport.docx», $template);

if (!isset($_GET[‘download’])) {echo ‘‘;}

[/exec]

Здравствуйте, [exec] echo htmlspecialchars($_POST[‘name’]); [/exec]
Вам [exec] echo (int)$_POST[‘avs1’]; ? [/exec]