• Hello!

    in an external php/form page
    users are requested to answer a question
    after they fill it in
    and click on ‘submit’
    they are directed to a WordPress page

    can I save this code (the form’s input) on a WordPress page ?

    <?php

    $results = ‘result.txt’;
    $fp = fopen($results, “a”);

    $QA = $_POST[‘QA’];
    $space = “/”;

    fputs($fp,”\n”);
    fputs($fp, $QA);
    fputs($fp, $space);

    fclose($fp);
    ?>

  • The topic ‘$results in a WordPress Page ?’ is closed to new replies.