Writing results to file.

This is a discussion on Writing results to file. within the PHP Language forums, part of the PHP Programming Forums category; I would like to take this output and write it to a file, thankyou.html. Any help would be great. ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008
techjohnny@gmail.com
 
Posts: n/a
Default Writing results to file.

I would like to take this output and write it to a file,
thankyou.html. Any help would be great.

thanks,

--tj

if($gen_thank == "on" )
{
$form_process .="?>\n\n\n<!-- This is the content of the Thank you
page, be careful while changing it -->\n\n";
$form_process .=" <br>
<br>
Thank you!"; $form_process .="
<table width=50%>
\n"; for($gg=0;$gg<sizeof($name);$gg++)
$form_process .="
<tr>
<td>".$name[$gg].": </td>
<td> <?php echo \$".$use_name[$gg]."; ?> </td>
</tr>
\n"; $form_process .="
</table>
\n<!-- Do not change anything below this line -->\n
\n"; }
Reply With Quote
  #2 (permalink)  
Old 02-27-2008
Jerry Stuckle
 
Posts: n/a
Default Re: Writing results to file.

techjohnny@gmail.com wrote:
> I would like to take this output and write it to a file,
> thankyou.html. Any help would be great.
>
> thanks,
>
> --tj
>
> if($gen_thank == "on" )
> {
> $form_process .="?>\n\n\n<!-- This is the content of the Thank you
> page, be careful while changing it -->\n\n";
> $form_process .=" <br>
> <br>
> Thank you!"; $form_process .="
> <table width=50%>
> \n"; for($gg=0;$gg<sizeof($name);$gg++)
> $form_process .="
> <tr>
> <td>".$name[$gg].": </td>
> <td> <?php echo \$".$use_name[$gg]."; ?> </td>
> </tr>
> \n"; $form_process .="
> </table>
> \n<!-- Do not change anything below this line -->\n
> \n"; }
>


Look up fopen() and fwrite(), for starters.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Reply With Quote
  #3 (permalink)  
Old 02-27-2008
techjohnny@gmail.com
 
Posts: n/a
Default Re: Writing results to file.

On Feb 26, 7:28 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> techjoh...@gmail.com wrote:
> > I would like to take this output and write it to a file,
> > thankyou.html. Any help would be great.

>
> > thanks,

>
> > --tj

>
> > if($gen_thank == "on" )
> > {
> > $form_process .="?>\n\n\n<!-- This is the content of the Thank you
> > page, be careful while changing it -->\n\n";
> > $form_process .=" <br>
> > <br>
> > Thank you!"; $form_process .="
> > <table width=50%>
> > \n"; for($gg=0;$gg<sizeof($name);$gg++)
> > $form_process .="
> > <tr>
> > <td>".$name[$gg].": </td>
> > <td> <?php echo \$".$use_name[$gg]."; ?> </td>
> > </tr>
> > \n"; $form_process .="
> > </table>
> > \n<!-- Do not change anything below this line -->\n
> > \n"; }

>
> Look up fopen() and fwrite(), for starters.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================


thanks.
Reply With Quote
  #4 (permalink)  
Old 02-27-2008
techjohnny@gmail.com
 
Posts: n/a
Default Re: Writing results to file.

On Feb 26, 7:28 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> techjoh...@gmail.com wrote:
> > I would like to take this output and write it to a file,
> > thankyou.html. Any help would be great.

>
> > thanks,

>
> > --tj

>
> > if($gen_thank == "on" )
> > {
> > $form_process .="?>\n\n\n<!-- This is the content of the Thank you
> > page, be careful while changing it -->\n\n";
> > $form_process .=" <br>
> > <br>
> > Thank you!"; $form_process .="
> > <table width=50%>
> > \n"; for($gg=0;$gg<sizeof($name);$gg++)
> > $form_process .="
> > <tr>
> > <td>".$name[$gg].": </td>
> > <td> <?php echo \$".$use_name[$gg]."; ?> </td>
> > </tr>
> > \n"; $form_process .="
> > </table>
> > \n<!-- Do not change anything below this line -->\n
> > \n"; }

>
> Look up fopen() and fwrite(), for starters.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================


$out2 = fopen("/www/storeforms/forms/thankyou.php","w");
fwrite($out2,$thankyou);
fclose($out2);

I just changed the variables to $thankyou

Thanks,

--JP
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0