Writing results to file.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • techjohnny@gmail.com

    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<s izeof($name);$g g++)
    $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"; }
  • Jerry Stuckle

    #2
    Re: Writing results to file.

    techjohnny@gmai l.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<s izeof($name);$g g++)
    $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@attgl obal.net
    =============== ===

    Comment

    • techjohnny@gmail.com

      #3
      Re: Writing results to file.

      On Feb 26, 7:28 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
      techjoh...@gmai l.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<s izeof($name);$g g++)
      $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...@attgl obal.net
      =============== ===
      thanks.

      Comment

      • techjohnny@gmail.com

        #4
        Re: Writing results to file.

        On Feb 26, 7:28 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
        techjoh...@gmai l.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<s izeof($name);$g g++)
        $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...@attgl obal.net
        =============== ===
        $out2 = fopen("/www/storeforms/forms/thankyou.php"," w");
        fwrite($out2,$t hankyou);
        fclose($out2);

        I just changed the variables to $thankyou

        Thanks,

        --JP

        Comment

        Working...