Carnegie Mellon University

Test and Publish a Web Form

Before you publish your form to the live web site, test it on the appropriate staging server.

To test the form on the staging server, you will need to modify the form code and alter the MailTo address to send the results to yourself. 
  1. Use the HTML code indicated below to identify the appropriate staging server.
  • CMS forms
<form id="my-form" name="my-form" method="post" action="https://cms-staging.andrew.cmu.edu/">
  • AWPS

<form id="my-form" name="my-form" method="post" action="https://publishing.andrew.cmu.edu/cgi-bin/mailto">

  1. Set your email address (AndrewID) to the value of the MailTo field to send the form results to yourself:

<input name="MailTo" type="hidden" value="your @andrew or @cmu email address" />

  1. (Optional) If you redirect an individual to a response page using the RedirectURL attribute, you must publish the page on the live web before you test your form.
  2. To publish the form you created on the live web after successful testing, change references in the HTML code from the staging server to the live web server, including the opening line:
  • For web forms published on the cmu.edu server (the CMS and the AWPS):
<form id="my-form" name="my-form" method="post" action="https://www.cmu.edu/mailto/">
  • For web forms published on the andrew.cmu.edu server (UserWeb and CourseWeb):
<form id="my-form" name="my-form" method="post" action="https://www.andrew.cmu.edu/cgi-bin/mailto/">

To publish the form you created on the live web after successful testing, change references in the HTML code from the staging server to the live web server, including the opening line.

  • For web forms published on the cmu.edu server (the CMS and the AWPS):
<form id="my-form" name="my-form" method="post" action="https://www.cmu.edu/cgi-bin/mailto">
  • For web forms published on andrew.cmu.edu (User/CourseWeb):
<form id="my-form" name="my-form" method="post" action="https://www.andrew.cmu.edu/cgi-bin/mailto">