phpESP Survey/Form Tutorial

Step 5: Deploy Surveys/Forms

if you have no further changes, click the Finish tab to complete the survey/form.

Finish Tab

Editing a Survey

  • Once a survey is finished, you may return to editing it by choosing Edit an Existing Survey from the Management Interface. Editing a survey uses the same interface as creating a new survey.

Testing a Survey

  • After you have created a survey/form, you can test it. Go to the Management Interface, select the Change the Status of an Existing Survey link and then select the Testlink for the appropriate survey/form.
  • Once your survey/form is in test mode, you can access a live copy of it by going to the Management Interface and selecting Test a Survey.
  • Note: Once a survey is changed to test mode, you can no longer make changes. If you just want to see how it will look, not test functionality, please use the preview option available when editing or creating a survey.

Deploying a Survey

  • To embed an active survey/form within an existing page, you must add the following PHP tag (including the less than sign (<), greater than sign (>), and question marks) in your HTML page. You need to save the file that embeds your survey/form with a .php extension in order for the survey/form to work. (Note: This code was also given to you on the Finish tab of the survey design.)

    $sid = YOUR_SURVEY_ID;
    include(‘/www/htdocs/home/help/webtool/survey/public/handler.php’); ?>

    Include the following stylesheet in the <head> of your page to get your form to align properly:

  • To access an active survey directly, go to:
  • You must activate this survey before you can collect results. From the Management Interface, select Change the Status of a Survey. A list of the surveys that your group owns will be displayed along with a list of action links (“Test”, “Activate”, “End”, and “Archive”). Click on the Activate link to activate the appropriate survey/form.
  • Once a survey is active, you may no longer make any changes to it.

Displaying the real-time survey/form results

If you are an advanced user, you can also create a page that displays the real-time results of the survey/form, by adding:

$results = 1;

Once saved, the files must be transferred to the server using an ftp client such as WS-FTP orFetch.

Move on to Step 6: View/Export Survey/Form Results.

Think Big We Do

Copyright © 2017 University of Rhode Island.