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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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"; } |
|
|||
|
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 ================== |
|
|||
|
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. |
|
|||
|
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 |