file_get_contents with query string

ZeoniX

New Member
i am trying to send email from phpi have one php file with all values & other php template file. (both files are on same server)i am using file_get_contents to get contents of php template file for example\[code\] $url="emil_form.php"; $a="uname"; if(($Content = file_get_contents($url. "?uname=".$a)) === false) { $Content = ""; } ...... EMAIL Sending Code ..........\[/code\]and here is code for emil_form.php (email template file)\[code\] Your Name is : <?php $_GET['uname']; ?>\[/code\]so once i got data in $Content i can send it by email.but i am getting error unable to open file....what i want is pass data from original php file to template php file and what will be output of template stored in variable so i can send it by email.how can do this ?Thanks
 
Back
Top