Vladik2033
Technical User
I had a script (see below) to send a simple form via e-mail, but now the form has changed and I am wondering how to change the script to be able to send the pieces like this one:
Type of institution (select all that apply):
<input type="checkbox" name="HospitalClinic" value="ON"> Hospital/clinic<br>
<input type="checkbox" name="Otherinstitution" value="ON">Other healthcare institution
(please describe):<textarea rows="2" name="DescribeOtherHealthcareInstitution" cols="20"></textarea><br>
<input type="checkbox" name="EducationalInstitution" value="ON">Educational institution <br>
<input type="checkbox" name="Association" value="ON">Association (professional,
institutional, etc.)<br>
<input type="checkbox" name="ResearchInstitution" value="ON">Research institution<br> <input type="checkbox" name="Other" value="ON">Other:<textarea rows="2" name="DescribeOtherInstitution" cols="20"></textarea><br>
</p>
and this:
Faith-based Organization-<br>
<input type="radio" name="Faithbasedorcommunity" value="Religious" checked>a religious congregation
(church, mosque, synagogue, temple)<br>
<input type="radio" name="Faithbasedorcommunity" value="sponsoredbyreligious">an organization, program, or project sponsored/hosted by a religious congregation<br>
<input type="radio" name="Faithbasedorcommunity" value="NGOfoundedbyReligious"> a nonprofit organization founded by a religious congregation or religiously-motivated incorporators and board members that clearly states in its name, incorporation, or mission statement
that it is a religiously motivated institution<br>
<input type="radio" name="Faithbasedorcommunity" value="Collaborationincludesallofabove">a collaboration of organizations that clearly and explicitly includes organizations from the previously described categories. <br>
Community-based Organization-<br>
<input type="radio" name="Faithbasedorcommunity" value="Communitybased">a neighborhood or grassroots non-profit organization that has been developed to address community needs<br>
Here is an original script:
<jscript>
var mess="Name of institution:"+request.getParameter("company")+ "\n\r\n\rCountry:"+request.getParameter("country")+"\n\r\n\rCity:"+request.getParameter("city")+"\n\r\n\rRegion/province:"+request.getParameter("region")+"\n\r\n\rMailing address:"+request.getParameter("address")+"\n\r\n\rTelephone number:"+request.getParameter("phone")+"\n\r\n\rFax number:"+request.getParameter("fax")+"\n\r\n\rE-mail address:"+request.getParameter("email")+"\n\r\n\rName of person submitting this information:"+request.getParameter("name")+"\n\r\n\rName of chief administrator at this institution:"+request.getParameter("chief")+"\n\r\n\rType of institution (hospital, medical university, clinic, etc.):"+request.getParameter("type")+"\n\r\n\rClinical focus/specialization of the institution:"+request.getParameter("specialization")+"\n\r\n\rSize of institution (number of beds, students, staff, etc.):"+request.getParameter("size")+"\n\r\n\rWhat type of assistance do you believe would be most useful to your institution?"+request.getParameter("assistance")+"\n\r\n\rWhat priorities do you think your institution and a our institution should focus on:\n\r"+request.getParameter("priorities")+"\n\r\n\rHow did you first learn about sendMail("webmaster@</jscript>
Type of institution (select all that apply):
<input type="checkbox" name="HospitalClinic" value="ON"> Hospital/clinic<br>
<input type="checkbox" name="Otherinstitution" value="ON">Other healthcare institution
(please describe):<textarea rows="2" name="DescribeOtherHealthcareInstitution" cols="20"></textarea><br>
<input type="checkbox" name="EducationalInstitution" value="ON">Educational institution <br>
<input type="checkbox" name="Association" value="ON">Association (professional,
institutional, etc.)<br>
<input type="checkbox" name="ResearchInstitution" value="ON">Research institution<br> <input type="checkbox" name="Other" value="ON">Other:<textarea rows="2" name="DescribeOtherInstitution" cols="20"></textarea><br>
</p>
and this:
Faith-based Organization-<br>
<input type="radio" name="Faithbasedorcommunity" value="Religious" checked>a religious congregation
(church, mosque, synagogue, temple)<br>
<input type="radio" name="Faithbasedorcommunity" value="sponsoredbyreligious">an organization, program, or project sponsored/hosted by a religious congregation<br>
<input type="radio" name="Faithbasedorcommunity" value="NGOfoundedbyReligious"> a nonprofit organization founded by a religious congregation or religiously-motivated incorporators and board members that clearly states in its name, incorporation, or mission statement
that it is a religiously motivated institution<br>
<input type="radio" name="Faithbasedorcommunity" value="Collaborationincludesallofabove">a collaboration of organizations that clearly and explicitly includes organizations from the previously described categories. <br>
Community-based Organization-<br>
<input type="radio" name="Faithbasedorcommunity" value="Communitybased">a neighborhood or grassroots non-profit organization that has been developed to address community needs<br>
Here is an original script:
<jscript>
var mess="Name of institution:"+request.getParameter("company")+ "\n\r\n\rCountry:"+request.getParameter("country")+"\n\r\n\rCity:"+request.getParameter("city")+"\n\r\n\rRegion/province:"+request.getParameter("region")+"\n\r\n\rMailing address:"+request.getParameter("address")+"\n\r\n\rTelephone number:"+request.getParameter("phone")+"\n\r\n\rFax number:"+request.getParameter("fax")+"\n\r\n\rE-mail address:"+request.getParameter("email")+"\n\r\n\rName of person submitting this information:"+request.getParameter("name")+"\n\r\n\rName of chief administrator at this institution:"+request.getParameter("chief")+"\n\r\n\rType of institution (hospital, medical university, clinic, etc.):"+request.getParameter("type")+"\n\r\n\rClinical focus/specialization of the institution:"+request.getParameter("specialization")+"\n\r\n\rSize of institution (number of beds, students, staff, etc.):"+request.getParameter("size")+"\n\r\n\rWhat type of assistance do you believe would be most useful to your institution?"+request.getParameter("assistance")+"\n\r\n\rWhat priorities do you think your institution and a our institution should focus on:\n\r"+request.getParameter("priorities")+"\n\r\n\rHow did you first learn about sendMail("webmaster@</jscript>