1

Hi,
I need to send by GET or POST, (is the same) a variable into my "template page".
I tried, when get the HTML, this:
// get the HTML
ob_start();
include(dirname(__FILE__).'/repository/voucher.php'.'?id=5');
$content = ob_get_clean();

but I get this warning:
Warning: include(C:\xampp\xampp\htdocs\b&b\backend\include\test\voucher/repository/voucher.php?id=5) [
function.include]: failed to open stream: No error in
C:\xampp\xampp\htdocs\b&b\backend\include\html2pdf_v4.03 ...

while if I delete the variable ?id=5, all works perfectly.

Do you know why?

2

include read a file, not made a request

$_GET['id'] = 5;
include('toto.php');

will do the thing.
et la le mec il le pécho par le bras et il lui dit '