• in an external php/form page
    i am asking users to answer a question
    after they answer
    they click on ‘submit’
    and are directed to a WordPress Page

    how/where can i save users input ?

    i tried to include the code below in the WordPress Page
    but no luck…

    Help…

    Thx, Grace.
    ~~~~~~

    <?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 ‘Form / Saving User’s Input’ is closed to new replies.