countrymeister
asked on
Request.Form not populating values while passing values from one asp page to another
I have a page called register.asp, developed in classic ASP which has a javascript file it uses (reg_form_process.js) and another asp page reg_form.asp to populate the fields.
There are abouty forty fields of information to fill, when the user fills the information, the user can submit by clicking the submit button to save the data to the database OR can click the Preview button to previw the data
I would like to know how I can retrieve the data on the preview_form.asp where I can display it accordingly.
here is my code
REGISTER.ASP
<%@ Language=VBScript %>
<%
Option Explicit
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
If Session("VolunteerID")<>"" Then
Response.Redirect "thankyou.asp"
End If
''#################### VARIABLES REQUIRED FOR REG FORM ####################
dim VolunteerID
dim RedirectTxt ''page to redirect to after data is saved
dim SubmitTxt ''page to submit registration page to for saving
dim ShowSubmit ''True or False value indicating wether save panel is viewable on reg form
dim ShowShifts ''True or False Value indicating wether form should show assigned shifts panel
dim FormLabel ''Text To display at top of registraion form
dim strTemp ''Misc string used for temp processing
dim strSQL
dim rsGetData
dim strSQL_Sup
dim rsGetData_Sup
dim NumOfPreDays
dim NumOfConventionDays
dim NumOfDays
dim ColWidth
dim Bgcolour
dim DayName
dim ShortDate
dim Date_Text()
dim Date_ID()
dim Vol_Available()
dim Vol_Assigned()
dim Temp_BGcolour
dim Vol_Skill_Assigned
dim Vol_This_Skill
dim Day_Check
dim Day_Disable
dim x
dim SkillCounter
dim Prefix
dim FirstName
dim MiddleName
dim LastName
dim BadgeTitle
dim Suffix
dim Email
dim Phone
dim EveningPhone
dim AlternativePhone
dim AddressLine1
dim AddressLine2
dim City
dim State
dim ZipCode
dim Country
dim ParishID
dim NeedsHousing
dim CanProvidehousing
dim ProvideHousingOnly
dim MaximumNumberShifts
dim Comments
VolunteerID=""
RedirectTxt="thankyou.asp"
SubmitTxt="register_save.a sp"
ShowSubmit="True"
ShowShifts="False"
''#################### END VARIABLES REQUIRED FOR REG FORM ####################
%>
<!--#include file ="Includes/volunteer_db_co nnect.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Registration</title >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="CM">
<meta name="description" content="Volunter Application">
<meta name="date-created" content="2005-02-18">
<meta name="robots" content="noindex,nofollow" >
<meta http-equiv="msthemecompati ble" content="no">
<meta HTTP-EQUIV="imagetoolbar" content="no">
<link rel="stylesheet" href="Style/style.css" type="text/css">
<script language="JavaScript" type="text/javascript" SRC="JScript/reg_form_proc ess.js"></ script>
</head>
<body onload="SetParams()">
<form name="register" action="register.asp" method="post" AUTOCOMPLETE="off">
<table height="1%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" height="1%">
<!--#include file ="Includes/page_header.asp "-->
</td>
</tr>
</table>
<!--#include file ="Includes/reg_form.asp"-- >
<p>
<a href="volunteer.pdf" target="new" class="regLabel3">Click here to print out a volunteer registration form</a>
</form>
</body>
</html>
END OF REGISTER.ASP
-------------------------- ---------- ---------- ---------- ---------- --------
REG_FORM.ASP which has the
the submit and preview button
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1"> </ span>
<input type="button" name="submit_form" value="Submit" class="regbutton1" OnClick="ValidateForm()">
<span class="regLabel3"> << Click here to submit your volunteer details</span>
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1"> </ span>
<input type="button" name="preview_form" value="Preview" class="regbutton1" OnClick="PreviewForm()">
<span class="regLabel3"> << Click here to preview your details</span>
</td>
</tr>
-------------------------- ---------- ---------- ---------- ----
REG_FORM_PROCESS.JS (javascript file)
The javascript file , reg_form_process.js has the following code
Note that the action evaluates to register_save.asp
function ValidateForm()
{
var Validate_Fields=new Array("FirstName","LastNam e","Addres sLine1", "City");
var Validate_Fields_Alert=new Array("First name","Last name","Address", "City")
var test_field="";
for (var i=0; i< Validate_Fields.length; i++)
{
test_field=StripInvalidCha racters(Ge tTextValue (form_name , Validate_Fields[i]));
SetTextValue(form_name, Validate_Fields[i], test_field);
if(test_field=="")
{
alert(Validate_Fields_Aler t[i] + " cannot be blank!");
SetFocus(Validate_Fields[i ]);
return false;
break;
}
}
var temp_badge_title=StripInva lidCharact ers(GetTex tValue(for m_name, "BadgeTitle"));
if(temp_badge_title=="")
{
var temp_first_name=GetTextVal ue(form_na me, "FirstName");
SetTextValue(form_name, "BadgeTitle", temp_badge_title);
}else{
SetTextValue(form_name, "BadgeTitle", temp_badge_title);
}
test_field=StripInvalidCha racters(Ge tTextValue (form_name , "AddressLine2"));
SetTextValue(form_name, "AddressLine2", test_field);
test_field=GetTextValue(fo rm_name, "Email");
if(test_field=="")
else
{
if(!emailCheck(test_field) )
{
SetFocus("Email");
return false;
}
}
test_field=StripInvalidCha racters(Ge tTextValue (form_name , "Country"));
SetTextValue(form_name, "Country", test_field);
if(test_field=="USA" || test_field=="")
{
test_field=ValidateUSPhone (GetTextVa lue(form_n ame, "Phone"));
SetTextValue(form_name, "Phone", test_field);
if(test_field=="")
{
SetFocus("Phone");
alert("The phone number you entered is not valid!");
return false;
}
test_field=GetTextValue(fo rm_name, "ZipCode");
if(!validateZIP(test_field ))
{
SetFocus("ZipCode");
alert("A valid zip code is required");
return false;
}
}else{
test_field=StripInvalidCha racters(Ge tTextValue (form_name , "Phone"));
SetTextValue(form_name, "Phone", test_field);
test_field=StripInvalidCha racters(Ge tTextValue (form_name , "ZipCode"));
SetTextValue(form_name, "ZipCode", test_field);
}
test_field=get_radio_value (form_name , "housing_radio")
if(test_field!="houseonly" )
{
var this_counter=0;
for (var i=1; i<=num_days; i++)
{
temp_disable_am=GetTextVal ue(form_na me, "day_" + i + "_am_disable");
if(temp_disable_am=="true" )
{
SetCheckboxValue(form_name , "day_" + i + "_am", "true");
}
temp_disable_pm=GetTextVal ue(form_na me, "day_" + i + "_pm_disable");
if(temp_disable_pm=="true" )
{
SetCheckboxValue(form_name , "day_" + i + "_pm", "true");
}
if(GetCheckboxValue(form_n ame, "day_" + i + "_am"))
{
this_counter++;
}
if(GetCheckboxValue(form_n ame, "day_" + i + "_pm"))
{
this_counter++;
}
}
SetTextValue(form_name, "TotalAvailableDays", this_counter);
if(this_counter==0)
{
SetFocus("day_1_am");
alert("You have not indicated your availability!\nCheck the days and times you are available to volunteer.");
return false;
}
test_field=StripInvalidCha racters(Ge tTextValue (form_name , "MaxShifts"));
if(test_field=="" || test_field=="0")
{
SetFocus("MaxShifts");
alert("Please enter the maximum number of shifts you are prepared to work");
return false;
}
if(test_field>9)
{
test_field=9;
}
SetTextValue(form_name, "MaxShifts", test_field);
var this_counter=0;
var this_skill_id="";
for (var i=1; i<=num_skills; i++)
{
this_skill_id=GetTextValue (form_name , "skill_id_" + i);
if(GetCheckboxValue(form_n ame, "skill_" + this_skill_id))
{
this_counter++;
}
}
if(this_counter==0)
{
SetFocus("skill_" + this_skill_id);
alert("Please indicate at least one skill");
return false;
}
}
test_field=StripInvalidCha racters(Ge tTextValue (form_name , "Comments"));
SetTextValue(form_name, "Comments", test_field);
SubmitThisForm();
}
function SubmitThisForm()
{ var action_url=GetTextValue(fo rm_name, "form_action");
document.forms[0].action=a ction_url;
document.forms[0].submit() ;
}
function PreviewForm()
{
document.forms[0].action=" preview_fo rm.asp";
document.forms[0].submit() ;
}
here is my preview_form.asp
<%@ Language=VBScript %>
<%
dim sFile
dim dd_status
dim reportname
'''''''''''''''''''''''''' '''''''''' '''''''
dim Prefix
dim FirstName
dim MiddleName
dim LastName
dim BadgeTitle
dim Suffix
dim Email
dim MailingPreference
dim Phone
dim EveningPhone
dim AlternativePhone
'''''''''''''''''''''''''' '''''''''' '''''''
Prefix=trim(Request.Form(" select_pre fix"))
'FirstName=trim(Request.Fo rm("FirstN ame"))
FirstName=document.opener. register.F irstName.V alue
MiddleName=trim(Request.Fo rm("Middle Name"))
LastName=trim(Request.Form ("LastName "))
BadgeTitle=trim(Request.Fo rm("BadgeT itle"))
Suffix=trim(Request.Form(" Suffix"))
Email=trim(Request.Form("E mail"))
Phone=trim(Request.Form("P hone"))
EveningPhone=trim(Request. Form("Even ingPhone") )
AlternativePhone=trim(Requ est.Form(" Alternativ ePhone"))
Response.write"<br> " &FirstName
There are abouty forty fields of information to fill, when the user fills the information, the user can submit by clicking the submit button to save the data to the database OR can click the Preview button to previw the data
I would like to know how I can retrieve the data on the preview_form.asp where I can display it accordingly.
here is my code
REGISTER.ASP
<%@ Language=VBScript %>
<%
Option Explicit
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
If Session("VolunteerID")<>""
Response.Redirect "thankyou.asp"
End If
''#################### VARIABLES REQUIRED FOR REG FORM ####################
dim VolunteerID
dim RedirectTxt ''page to redirect to after data is saved
dim SubmitTxt ''page to submit registration page to for saving
dim ShowSubmit ''True or False value indicating wether save panel is viewable on reg form
dim ShowShifts ''True or False Value indicating wether form should show assigned shifts panel
dim FormLabel ''Text To display at top of registraion form
dim strTemp ''Misc string used for temp processing
dim strSQL
dim rsGetData
dim strSQL_Sup
dim rsGetData_Sup
dim NumOfPreDays
dim NumOfConventionDays
dim NumOfDays
dim ColWidth
dim Bgcolour
dim DayName
dim ShortDate
dim Date_Text()
dim Date_ID()
dim Vol_Available()
dim Vol_Assigned()
dim Temp_BGcolour
dim Vol_Skill_Assigned
dim Vol_This_Skill
dim Day_Check
dim Day_Disable
dim x
dim SkillCounter
dim Prefix
dim FirstName
dim MiddleName
dim LastName
dim BadgeTitle
dim Suffix
dim Email
dim Phone
dim EveningPhone
dim AlternativePhone
dim AddressLine1
dim AddressLine2
dim City
dim State
dim ZipCode
dim Country
dim ParishID
dim NeedsHousing
dim CanProvidehousing
dim ProvideHousingOnly
dim MaximumNumberShifts
dim Comments
VolunteerID=""
RedirectTxt="thankyou.asp"
SubmitTxt="register_save.a
ShowSubmit="True"
ShowShifts="False"
''#################### END VARIABLES REQUIRED FOR REG FORM ####################
%>
<!--#include file ="Includes/volunteer_db_co
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Registration</title
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="author" content="CM">
<meta name="description" content="Volunter Application">
<meta name="date-created" content="2005-02-18">
<meta name="robots" content="noindex,nofollow"
<meta http-equiv="msthemecompati
<meta HTTP-EQUIV="imagetoolbar" content="no">
<link rel="stylesheet" href="Style/style.css" type="text/css">
<script language="JavaScript" type="text/javascript" SRC="JScript/reg_form_proc
</head>
<body onload="SetParams()">
<form name="register" action="register.asp" method="post" AUTOCOMPLETE="off">
<table height="1%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" height="1%">
<!--#include file ="Includes/page_header.asp
</td>
</tr>
</table>
<!--#include file ="Includes/reg_form.asp"--
<p>
<a href="volunteer.pdf" target="new" class="regLabel3">Click here to print out a volunteer registration form</a>
</form>
</body>
</html>
END OF REGISTER.ASP
--------------------------
REG_FORM.ASP which has the
the submit and preview button
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1"> </
<input type="button" name="submit_form" value="Submit" class="regbutton1" OnClick="ValidateForm()">
<span class="regLabel3"> <<
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1"> </
<input type="button" name="preview_form" value="Preview" class="regbutton1" OnClick="PreviewForm()">
<span class="regLabel3"> <<
</td>
</tr>
--------------------------
REG_FORM_PROCESS.JS (javascript file)
The javascript file , reg_form_process.js has the following code
Note that the action evaluates to register_save.asp
function ValidateForm()
{
var Validate_Fields=new Array("FirstName","LastNam
var Validate_Fields_Alert=new Array("First name","Last name","Address", "City")
var test_field="";
for (var i=0; i< Validate_Fields.length; i++)
{
test_field=StripInvalidCha
SetTextValue(form_name, Validate_Fields[i], test_field);
if(test_field=="")
{
alert(Validate_Fields_Aler
SetFocus(Validate_Fields[i
return false;
break;
}
}
var temp_badge_title=StripInva
if(temp_badge_title=="")
{
var temp_first_name=GetTextVal
SetTextValue(form_name, "BadgeTitle", temp_badge_title);
}else{
SetTextValue(form_name, "BadgeTitle", temp_badge_title);
}
test_field=StripInvalidCha
SetTextValue(form_name, "AddressLine2", test_field);
test_field=GetTextValue(fo
if(test_field=="")
else
{
if(!emailCheck(test_field)
{
SetFocus("Email");
return false;
}
}
test_field=StripInvalidCha
SetTextValue(form_name, "Country", test_field);
if(test_field=="USA" || test_field=="")
{
test_field=ValidateUSPhone
SetTextValue(form_name, "Phone", test_field);
if(test_field=="")
{
SetFocus("Phone");
alert("The phone number you entered is not valid!");
return false;
}
test_field=GetTextValue(fo
if(!validateZIP(test_field
{
SetFocus("ZipCode");
alert("A valid zip code is required");
return false;
}
}else{
test_field=StripInvalidCha
SetTextValue(form_name, "Phone", test_field);
test_field=StripInvalidCha
SetTextValue(form_name, "ZipCode", test_field);
}
test_field=get_radio_value
if(test_field!="houseonly"
{
var this_counter=0;
for (var i=1; i<=num_days; i++)
{
temp_disable_am=GetTextVal
if(temp_disable_am=="true"
{
SetCheckboxValue(form_name
}
temp_disable_pm=GetTextVal
if(temp_disable_pm=="true"
{
SetCheckboxValue(form_name
}
if(GetCheckboxValue(form_n
{
this_counter++;
}
if(GetCheckboxValue(form_n
{
this_counter++;
}
}
SetTextValue(form_name, "TotalAvailableDays", this_counter);
if(this_counter==0)
{
SetFocus("day_1_am");
alert("You have not indicated your availability!\nCheck the days and times you are available to volunteer.");
return false;
}
test_field=StripInvalidCha
if(test_field=="" || test_field=="0")
{
SetFocus("MaxShifts");
alert("Please enter the maximum number of shifts you are prepared to work");
return false;
}
if(test_field>9)
{
test_field=9;
}
SetTextValue(form_name, "MaxShifts", test_field);
var this_counter=0;
var this_skill_id="";
for (var i=1; i<=num_skills; i++)
{
this_skill_id=GetTextValue
if(GetCheckboxValue(form_n
{
this_counter++;
}
}
if(this_counter==0)
{
SetFocus("skill_" + this_skill_id);
alert("Please indicate at least one skill");
return false;
}
}
test_field=StripInvalidCha
SetTextValue(form_name, "Comments", test_field);
SubmitThisForm();
}
function SubmitThisForm()
{ var action_url=GetTextValue(fo
document.forms[0].action=a
document.forms[0].submit()
}
function PreviewForm()
{
document.forms[0].action="
document.forms[0].submit()
}
here is my preview_form.asp
<%@ Language=VBScript %>
<%
dim sFile
dim dd_status
dim reportname
''''''''''''''''''''''''''
dim Prefix
dim FirstName
dim MiddleName
dim LastName
dim BadgeTitle
dim Suffix
dim Email
dim MailingPreference
dim Phone
dim EveningPhone
dim AlternativePhone
''''''''''''''''''''''''''
Prefix=trim(Request.Form("
'FirstName=trim(Request.Fo
FirstName=document.opener.
MiddleName=trim(Request.Fo
LastName=trim(Request.Form
BadgeTitle=trim(Request.Fo
Suffix=trim(Request.Form("
Email=trim(Request.Form("E
Phone=trim(Request.Form("P
EveningPhone=trim(Request.
AlternativePhone=trim(Requ
Response.write"<br> " &FirstName
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi ! third
here is the code for reg_form.asp
<%
If LEN(VolunteerID)>0 Then
strSQL="exec spEditVolunteer_GetVolunte er " & VolunteerID
Set rsGetData=adocon.Execute(s trSQL)
If NOT rsGetData.EOF Then
Prefix=rsGetData("Prefix")
FirstName=rsGetData("First name")
MiddleName=rsGetData("Midd leName")
LastName=rsGetData("LastNa me")
BadgeTitle=rsGetData("Badg eTitle")
Suffix=rsGetData("Suffix")
Email=rsGetData("Email")
Phone=rsGetData("DayTimePh one")
EveningPhone=rsGetData("Ev eningPhone Num")
AlternativePhone=rsGetData ("Alternat ivePhone")
AddressLine1=rsGetData("Ad dressLine1 ")
AddressLine2=rsGetData("Ad dressLine2 ")
City=rsGetData("City")
State=rsGetData("State")
ZipCode=rsGetData("ZipCode ")
Country=rsGetData("Country ")
ParishID=rsGetData("Parish ID")
NeedsHousing=rsGetData("Ne edsHousing ")
CanProvidehousing=rsGetDat a("CanProv idehousing ")
ProvideHousingOnly=rsGetDa ta("Provid eHousingOn ly")
MaximumNumberShifts=rsGetD ata("MaxNu mberShifts Desired")
Comments=rsGetData("Note")
Else
Prefix=""
FirstName=""
MiddleName=""
LastName=""
BadgeTitle=""
Suffix=""
Email=""
Phone=""
EveningPhone=""
AlternativePhone=""
AddressLine1=""
AddressLine2=""
City=""
State=""
ZipCode=""
Country="USA"
ParishID=""
NeedsHousing="False"
CanProvidehousing="True"
ProvideHousingOnly="False"
MaximumNumberShifts="0"
Comments=""
End If
Else
Prefix=""
FirstName=""
MiddleName=""
LastName=""
Suffix=""
Email=""
Phone=""
EveningPhone=""
AlternativePhone=""
AddressLine1=""
AddressLine2=""
City=""
State=""
ZipCode=""
Country="USA"
ParishID=""
NeedsHousing="False"
CanProvidehousing="False"
ProvideHousingOnly="False"
MaximumNumberShifts="0"
Comments=""
End If
%>
<table height="99%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/tran_pix_1x1.g if" width="20" height="1"></td><!--Left Marg-->
<td>
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
<tr><td colspan="3"><%Response.Wri te FormLabel%><input type="hidden" name="volunteer_id" value="<%Response.Write VolunteerID%>"><input type="hidden" name="redirect_to" value="<%Response.Write RedirectTxt%>"><input type="hidden" name="form_action" value="<%Response.Write SubmitTxt%>"></td></tr>
<tr>
<td width="49%" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- NAME TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="center" colspan="3" bgcolor="#073971"><span class="regLabel2">Name</sp an></td></ tr>
<tr><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="2"></td></tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Pr efix:  ;</span>
</td>
<td align="left" valign="top">
<% Call SetSelectValuesAndHighligh t("select_ prefix", "regselect1", "", "exec spVolunteerRegistration_Li stPrefixes ", "Prefix", "Prefix", Prefix)%>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span> <span class="regLabel1"> Fi rst N ame: </span>
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Firs tName", FirstName, "regtextbox1", " OnBlur=""SetBadgeTitle(); javascript:this.className= 'regtextbo x1';"" onfocus=""javascript:this. className= 'regtextbo x1Highligh t'""") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4"> </ span><span class="regLabel1"> Mi ddle Name:  ;</span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("MiddleName ", MiddleName, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span> <span class="regLabel1"> La st Na me: < /span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("LastName", LastName, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4"> </ span><span class="regLabel1"> Su ffix:  ;</span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("Suffix", Suffix, "regtextbox2", "regtextbox2Highlight", "") %>
<span class="regLabel1"><i>  ;e.g Jr, PHD etc.</i></span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Ba dge N ickname:&n bsp;</span >
</td>
<td align="left" valign="top">
<% Call WriteTextField("BadgeTitle ", BadgeTitle, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Em ail: </span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("Email", Email, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span> <span class="regLabel1"> Da ytime Number: </span>
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Phon e", Phone, "regtextbox2", " OnBlur=""FormatPhone(); javascript:this.className= 'regtextbo x2';"" onfocus=""javascript:this. className= 'regtextbo x2Highligh t'"" ") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Ev ening Number: </span>
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Even ingPhone", EveningPhone, "regtextbox2", " OnBlur=""FormatEveningPhon e() ; javascript:this.className= 'regtextbo x2';"" onfocus=""javascript:this. className= 'regtextbo x2Highligh t'"" ") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Al ternative Number: </span>
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Alte rnativePho ne", AlternativePhone, "regtextbox2", " OnBlur=""FormatAlternative Phone() ; javascript:this.className= 'regtextbo x2';"" onfocus=""javascript:this. className= 'regtextbo x2Highligh t'"" ") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" colspan="3" nowrap><table width="100%" height="1" cellspacing="0" border="0" cellpadding="0"><tr><td><s pan class="regLabel1"> </ span></td> <td><span class="regLabel1">Enter any other contact information in the comments section below. </span></td></tr></table>< /td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END NAME TABLE -->
</td>
<td width="1%"><img src="Images/tran_pix_1x1.g if" width="10" height="1" border="0" alt=""></td>
<td width="49%" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- ADDRESS TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="center" colspan="3" bgcolor="#073971"><span class="regLabel2">Address< /span></td ></tr>
<tr><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="2"></td></tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span> <span class="regLabel1"> Ad dress:&nbs p;</span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("AddressLin e1", AddressLine1, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> </ span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("AddressLin e2", AddressLine2, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span> <span class="regLabel1"> Ci ty: < /span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("City", City, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span> <span class="regLabel1"> St ate: </span>
</td>
<td align="left" valign="top" nowrap>
<% Call SetSelectValuesAndHighligh t("select_ state", "regselect2", "", "exec spVolunteerRegistration_Li stStates", "ID", "ID", State)%>
<span class="regLabel4">*</span> <span class="regLabel1"> Zi p:</span>
<% Call WriteTextField("ZipCode", ZipCode, "regtextbox2", "regtextbox2Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Co untry:&nbs p;</span>
</td>
<td align="left" valign="top" nowrap>
<% Call WriteTextField("Country", Country, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="bottom" nowrap colspan="3" height="5"><img src="images/h_line_1.gif" width="272" height="1"></td>
</tr>
<tr>
<!--<td align="left" valign="top" colspan="3" nowrap><table width="100%" height="1" cellspacing="0" border="0" cellpadding="0"><tr><td><s pan class="regLabel1"> </ span></td> <td><span class="regLabel5">If your parish is in Southern Ohio, please select it below: </span></td></ tr></table ></td>-->
<td align="left" valign="top" colspan="3" nowrap><table width="100%" height="1" cellspacing="0" border="0" cellpadding="0"><tr><td><s pan class="regLabel1"> </ span></td> <td><span class="regLabel5">Are you from the Diocese of Los Angeles? </span><in put type='checkbox' name='ChkDiocese' value='Yes'onClick="Toggle ()"></td>< /tr></tabl e></td>
</tr>
<tr id='ParishDiocese'>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Pa rish:  ;</span>
</td>
<td align="left" valign="top">
<% Call SetSelectValuesAndHighligh tWithSelec t("select_ parish", "regselect3", "", "exec spVolunteerRegistration_Li stParishes ", "ID", "Descr", ParishID)%>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="middle" nowrap colspan="3" height="5"><img src="images/h_line_1.gif" width="272" height="1"></td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END ADDRESS TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr id='HousingData'>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- HOUSING TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="3" bgcolor="#073971"><span class="regLabel2"> &n bsp;Privat e Hou sing for v olunteers< /span></td ></tr>
<tr><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="2"></td></tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="provide" <% If CanProvidehousing="True" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> I can provide volunteer housing. </span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="require" <% If NeedsHousing="True" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> I require volunteer housing. (Housing for Southern Ohio Volunteers only). </span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="houseonly" <% If ProvideHousingOnly="True" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> I can provide volunteer housing and I am not volunteering. </span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="na" <% If ProvideHousingOnly="False" AND NeedsHousing="False" AND CanProvidehousing="False" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> N/ A </s pan>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END HOUSING TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- AVAILABILITY TABLE -->
<%
NumOfPreDays=0
NumOfConventionDays=0
NumOfDays=0
strSQL="exec spVolunteerRegistration_Li stDates"
Set rsGetData=adocon.Execute(s trSQL)
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
If rsGetData("PreConvention") ="True" Then
NumOfPreDays=NumOfPreDays + 1
Else
NumOfConventionDays=NumOfC onventionD ays + 1
End If
NumOfDays=NumOfDays + 1
DayName=WEEKDAYNAME(WEEKDA Y(rsGetDat a("DayDate ")),TRUE)
ShortDate=MONTH(rsGetData( "DayDate") ) & "/" & DAY(rsGetData("DayDate"))
REDIM PRESERVE Date_Text(NumOfDays)
Date_Text(NumOfDays)=DayNa me & "<br>" & ShortDate
REDIM PRESERVE Date_ID(NumOfDays)
Date_ID(NumOfDays)=rsGetDa ta("DayID" )
REDIM PRESERVE Vol_Available(NumOfDays)
REDIM PRESERVE Vol_Assigned(NumOfDays)
If LEN(VolunteerID)>0 Then
''********* See If Volunteer indicated this day as being available *******
Vol_Available(NumOfDays)=" "
strSQL_Sup="exec spEditVolunteer_GetVolunte erAvailabi lityThisDa y " & VolunteerID & ", '" & rsGetData("DayDate") & "'"
Set rsGetData_Sup=adocon.Execu te(strSQL_ Sup)
If NOT rsGetData_Sup.EOF Then
While NOT rsGetData_Sup.EOF
Vol_Available(NumOfDays)=V ol_Availab le(NumOfDa ys) & TRIM(rsGetData_Sup("AMPM") )
rsGetData_Sup.MoveNext
Wend
End If
''********* See If this day has a shift assigned to the volunteer *******
Vol_Assigned(NumOfDays)=""
strSQL_Sup="exec spEditVolunteer_GetVolunte erShiftsTh isDay " & VolunteerID & ", " & MONTH(rsGetData("DayDate") ) & ", " & DAY(rsGetData("DayDate")) & ", " & YEAR(rsGetData("DayDate"))
Set rsGetData_Sup=adocon.Execu te(strSQL_ Sup)
If NOT rsGetData_Sup.EOF Then
While NOT rsGetData_Sup.EOF
Vol_Assigned(NumOfDays)=Vo l_Assigned (NumOfDays ) & TRIM(rsGetData_Sup("AMPM") )
rsGetData_Sup.MoveNext
Wend
End If
Else
Vol_Available(NumOfDays)=" "
Vol_Assigned(NumOfDays)=""
End If
rsGetData.MoveNext
Wend
Else
NumOfPreDays=0
NumOfConventionDays=0
NumOfDays=0
End If
If NumOfDays=0 Then
Response.Write "<center><span class=""Label4"">No Convention dates have been set!</span></center>"
Response.End
End If
ColWidth=100 / (NumOfDays+2)
Bgcolour="#E5EBE8"
%>
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="0">
<tr><td valign="middle" width="100%" align="left" colspan="<%Response.Write NumOfDays+2%>" bgcolor="#073971"><span class="regLabel2"> &n bsp;Select Your Availability</span></td></ tr>
<tr>
<td align="left" valign="top" nowrap colspan="2" style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth * 2%>%"><span class="regLabel1"> </ span><inpu t type="hidden" name="numdays" value="<%Response.Write NumOfDays%>"></td>
<td bgcolor="#CAD2DC" align="center" valign="top" nowrap colspan="<%Response.Write NumOfPreDays%>" style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" width="<%Response.Write ColWidth * NumOfPreDays%>%"><span class="regLabel3">Pre Convention</span></td>
<td bgcolor="#CADCD3" align="center" valign="top" nowrap colspan="<%Response.Write NumOfConventionDays%>" style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" width="<%Response.Write ColWidth * NumOfConventionDays%>%"><s pan class="regLabel3">General Convention</span></td>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><span class="regLabel3">SELECT</ span></td>
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" width="<%Response.Write ColWidth%>%"><span class="regLabel3">DATE</sp an></td>
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""middle"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><span class=""regLabel6"">" & Date_Text(X) & "</span></td>"
Next
%>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><img src="Images/btn_all_small. gif" width="32" height="11" border="0" alt="Select all AM Dates" Onclick="SelectAllAM()" style="cursor: pointer;"></td>
<td align="center" valign="top" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" title="(6:00am - 1:00pm)" width="<%Response.Write ColWidth%>%"><span class="regLabel1">AM</span ></td>
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
If InStr(1,Vol_Available(X)," AM",1)>0 Then
Day_Check="checked"
Else
Day_Check=" OnClick='CountShifts()' "
End If
If InStr(1,Vol_Assigned(X),"A M",1)>0 Then
Day_Disable="true"
Day_Check="checked OnClick='this.checked=true ' "
Temp_BGcolour=Bgcolour
BGcolour="#FFE60F"
Else
Day_Disable="false"
Temp_BGcolour=Bgcolour
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""top"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><input type=""checkbox"" name=""day_" & X & "_am"" " & Day_Check & "><input type=""hidden"" name=""date_id_" & X & " value=""" & Date_ID(X) & """><input type=""hidden"" name=""day_" & X & "_am_disable"" value=""" & Day_Disable & """></td>"
Bgcolour=Temp_BGcolour
Next
%>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><img src="Images/btn_all_small. gif" width="32" height="11" border="0" alt="Select all PM Dates" Onclick="SelectAllPM()" style="cursor: pointer;"></td>
<td align="center" valign="top" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" title="(12:00pm - 7:00pm)" width="<%Response.Write ColWidth%>%"><span class="regLabel1">PM</span ></td>
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
If InStr(1,Vol_Available(X)," PM",1)>0 Then
Day_Check="checked"
Else
Day_Check=" OnClick='CountShifts()' "
End If
If InStr(1,Vol_Assigned(X),"P M",1)>0 Then
Day_Disable="true"
Day_Check="checked OnClick='this.checked=true ' "
Temp_BGcolour=Bgcolour
BGcolour="#FFE60F"
Else
Day_Disable="false"
Temp_BGcolour=Bgcolour
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""top"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><input type=""checkbox"" name=""day_" & X & "_pm"" " & Day_Check & "><input type=""hidden"" name=""day_" & X & "_pm_disable"" value=""" & Day_Disable & """></td>"
Bgcolour=Temp_BGcolour
Next
%>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><img src="Images/btn_all_small. gif" width="32" height="11" border="0" alt="Select all Day Dates" Onclick="SelectAllDAY()" style="cursor: pointer;"></td>
<td align="center" valign="top" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" title="(6:00am - 7:00pm)" width="<%Response.Write ColWidth%>%"><span class="regLabel1">ALL DAY</span></td>
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
If InStr(1,Vol_Available(X)," AP",1)>0 Then
Day_Check="checked"
Else
Day_Check=" OnClick='CountShifts()' "
End If
If InStr(1,Vol_Assigned(X),"A P",1)>0 Then
Day_Disable="true"
Day_Check="checked OnClick='this.checked=true ' "
Temp_BGcolour=Bgcolour
BGcolour="#FFE60F"
Else
Day_Disable="false"
Temp_BGcolour=Bgcolour
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""top"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><input type=""checkbox"" name=""day_" & X & "_ap"" " & Day_Check & "><input type=""hidden"" name=""day_" & X & "_ap_disable"" value=""" & Day_Disable & """></td>"
Bgcolour=Temp_BGcolour
Next
%>
</tr>
<tr bgcolor="#EDF1EF"><td colspan="<%Response.Write NumOfDays+2%>" align="left" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;"><span class="regLabel4">*</span> <span class="regLabel1"> Ma ximum number of shifts you are willing to work: </span><% Call WriteTextField("MaxShifts" , MaximumNumberShifts, "regtextbox4", "regtextbox3Highlight", " MAXLENGTH=3 OnBlur='NumShiftsSet()' disabled='true' font-weight='bold' ") %><input type="hidden" name="TotalAvailableDays" value="0"><span class="regLabel1"> Sh ift Hours : <strong >AM</stron g> &n bsp;6.00 a.m - 12.00 p.m   ; <st rong>PM</s trong>&nbs p; 1. 00 p.m - 7.00 p.m   ; <st rong>ALL DAY</strong> 6. 00 a.m - 7.00 p.m</span></td></tr>
<tr><td colspan="<%Response.Write NumOfDays+2%>" align="left" valign="middle"><span class="regLabel1"> Pl ease note that due to the legislative schedule, some shifts may cross from AM to PM and may include evening shifts for committee meetings, hearings and legislative sessions. </span></td ></tr>
<tr><td valign="middle" width="100%" align="left" colspan="<%Response.Write NumOfDays+2%>"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
</table>
<!-- END AVAILABILITY TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- SKILLS TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="4" bgcolor="#073971"><span class="regLabel4">*</span> <span class="regLabel1"> <s pan class="regLabel2"> &n bsp;Please indicate your abilities by checking the appropriate boxes (identify at least one ability, check all that apply)</span></td></tr>
<%
SkillCounter=0
strSQL="exec spVolunteerRegistration_Li stSkills"
Set rsGetData=adocon.Execute(s trSQL)
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
SkillCounter=SkillCounter+ 1
Bgcolour="#FFFFFF"
If LEN(VolunteerID)>0 Then
strSQL_Sup="exec spEditVolunteer_GetVolunte erSkill " & VolunteerID & ", " & rsGetData("SkillID")
Set rsGetData_Sup=adocon.Execu te(strSQL_ Sup)
If NOT rsGetData_Sup.EOF Then
Vol_This_Skill="checked"
Else
Vol_This_Skill=""
End If
strSQL_Sup="exec spGetShiftsForVolunteer " & VolunteerID
Set rsGetData_Sup = adoCon.Execute(strSQL_Sup)
While NOT rsGetData_Sup.EOF
If rsGetData_Sup("SkillID")=r sGetData(" SkillID") Then
Vol_Skill_Assigned=" OnClick='this.checked=true ' "
BGcolour="#FFE60F"
Else
Vol_Skill_Assigned=""
End If
rsGetData_Sup.MoveNext
Wend
Else
Vol_This_Skill=""
Vol_Skill_Assigned=""
End If
Response.Write "<tr>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<input type=""checkbox"" name=""skill_" & rsGetData("SkillID") & """ " & Vol_This_Skill & " " & Vol_Skill_Assigned & ">"
Response.Write "<input type=""hidden"" name=""skill_id_" & SkillCounter & """ value=""" & rsGetData("SkillID") & """>"
Response.Write "<input type=""hidden"" name=""skill_descr_" & rsGetData("SkillID") & """ value=""" & rsGetData("SkillDescr") & """>"
Response.Write "</td>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<span class=""regLabel1"">" & rsGetData("SkillDescr") & " </span>"
Response.Write "</td>"
Response.Write "<td nowrap>"
Response.Write "<span class=""regLabel1""><i>e.g . " & rsGetData("ExampleJobs") & "</i></span>"
Response.Write "</td>"
Response.Write "<td width=""100%""><img src=""images/tran_pix_1x1. gif"" width=""1"" height=""1""></td>"
Response.Write "</tr>"
rsGetData.MoveNext
Wend
Else
End If
%>
<tr height="100%"><td colspan="4" valign="top"><input type="hidden" name="numskills" value="<%Response.Write SkillCounter%>"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END SKILLS TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- EXPERIENCE TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="4" bgcolor="#073971"><span class="regLabel2"> &n bsp;Experi ence (check all that apply)</span></td></tr>
<%
SkillCounter=0
strSQL="exec spVolunteerRegistration_Li stExperien ces"
Set rsGetData=adocon.Execute(s trSQL)
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
SkillCounter=SkillCounter+ 1
Bgcolour="#FFFFFF"
If LEN(VolunteerID)>0 Then
strSQL_Sup="exec spEditVolunteer_GetVolunte erExperien ce " & VolunteerID & ", " & rsGetData("ExperienceID")
Set rsGetData_Sup=adocon.Execu te(strSQL_ Sup)
If NOT rsGetData_Sup.EOF Then
Vol_This_Skill="checked"
Else
Vol_This_Skill=""
End If
Else
Vol_This_Skill=""
End If
Response.Write "<tr>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<input type=""checkbox"" name=""experience_" & rsGetData("ExperienceID") & """ " & Vol_This_Skill & ">"
Response.Write "<input type=""hidden"" name=""experience_id_" & SkillCounter & """ value=""" & rsGetData("ExperienceID") & """>"
Response.Write "<input type=""hidden"" name=""experience_descr_" & rsGetData("ExperienceID") & """ value=""" & rsGetData("ExperienceDescr ") & """>"
Response.Write "</td>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<span class=""regLabel1"">" & rsGetData("ExperienceDescr ") & " </span>"
Response.Write "</td>"
Response.Write "<td nowrap>"
If LEN(rsGetData("ExampleJobs "))>1 Then
Response.Write "<span class=""regLabel1""><i>e.g . " & rsGetData("ExampleJobs") & "</i></span>"
Else
Response.Write "<span class=""regLabel1""> </span>"
End If
Response.Write "</td>"
Response.Write "<td width=""100%""><img src=""images/tran_pix_1x1. gif"" width=""1"" height=""1""></td>"
Response.Write "</tr>"
rsGetData.MoveNext
Wend
Else
End If
%>
<tr height="100%"><td colspan="4" valign="top"><input type="hidden" name="numexperience" value="<%Response.Write SkillCounter%>"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END EXPERIENCE TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- ADDITIONAL INFO TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="3" bgcolor="#073971"><span class="regLabel2"> En ter any additional relevant comments below (e.g. additional contact information, or any physical challenges you may have).</span></td></tr>
<tr>
<td align="center" valign="top" nowrap colspan="3">
<textarea name="Comments" style="width: 90%; "><%Response.Write Comments%></textarea>
</td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END ADDITIONAL INFO TABLE -->
</td>
</tr>
<% If ShowShifts="True" AND LEN(VolunteerID)>=1 Then %>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- ASSIGNED SHIFTS TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="4" bgcolor="#073971"><span class="regLabel2"> &n bsp;Assign ed Shifts</span></td></tr>
<tr>
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;"><span class="regLabel3">DATE</sp an></td>
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"><span class="regLabel3">START</s pan></td>
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"><span class="regLabel3">END</spa n></td>
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"><span class="regLabel3">AREA</sp an></td>
<%
strSQL="exec spEditVolunteer_GetVolunte erShifts " & VolunteerID
Set rsGetData=adocon.Execute(s trSQL)
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
Response.Write "<tr>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;"">"
Response.Write "<span class=""regLabel1""> " & WEEKDAYNAME(WEEKDAY(rsGetD ata("Start Time"))) & " " & FORMATDATETIME(rsGetData(" StartTime" ), vbShortDate) & "</span>"
Response.Write "</td>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"">"
Response.Write "<span class=""regLabel1""> " & FORMATDATETIME(rsGetData(" StartTime" ), vbShortTime) & "</span>"
Response.Write "</td>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"">"
Response.Write "<span class=""regLabel1""> " & FORMATDATETIME(rsGetData(" EndTime"), vbShortTime) & "</span>"
Response.Write "</td>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"">"
Response.Write "<span class=""regLabel1""> " & rsGetData("AreaDescr") & "</span>"
Response.Write "</td>"
Response.Write "</tr>"
rsGetData.MoveNext
Wend
Else
Response.Write "<tr>"
Response.Write "<td nowrap colspan=""4"" align=""center"">"
Response.Write "<span class=""regLabel1"">No shifts have been assigned for this volunteer</span>"
Response.Write "</td>"
Response.Write "</tr>"
End If
%>
<tr height="100%"><td colspan="4" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END ASSIGNED SHIFTS TABLE -->
</td>
</tr>
<%End If%>
<% If ShowSubmit="True" Then %>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- SUBMIT TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="3" bgcolor="#073971"><span class="regLabel2"> &n bsp;Submit Volunteer Application</span></td></t r>
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1">Please check over the information you have entered, if everything is correct click the Submit button below. You will receive a notice that your application has been submitted.</span>
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1"> </ span>
<input type="button" name="submit_form" value="Submit" class="regbutton1" OnClick="ValidateForm()">
<span class="regLabel3"> << Click here to submit your volunteer details</span>
<input type="button" name="preview_form" value="Preview" class="regbutton1" OnClick="PreviewForm()" >
<span class="regLabel3"> << Click here to preview the data before submitting</span>
</td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g if" width="1" height="1"></td></tr>
</table>
<!-- END SUBMIT TABLE -->
</td>
</tr>
<%End If%>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g if" width="1" height="3"></td></tr>
</table>
</td>
<td><img src="images/tran_pix_1x1.g if" width="20" height="1"></td><!--Right Marg-->
</tr>
</table
<%
Sub SetSelectValues(strName, strClass, strJScript, str_sql, id_value, id_descr)
Dim rsGetSelect
Response.Write "<select name=""" & strName & """ class=""" & strClass & """" & strJScript & ">"
Set rsGetSelect = adoCon.Execute(str_sql)
If NOT rsGetSelect.EOF Then
While NOT rsGetSelect.EOF
Response.Write "<option value='" & rsGetSelect(id_value) & "'>" & rsGetSelect(id_descr) & "</option>"
rsGetSelect.MoveNext
Wend
Else
''no data found
Response.Write "<option value='0'> </option>"
End If
Response.Write "</select>"
End Sub
Sub SetSelectValuesAndHighligh t(strName, strClass, strJScript, str_sql, id_value, id_descr, id_match)
Dim rsGetSelect
Response.Write "<select name=""" & strName & """ class=""" & strClass & """" & strJScript & ">"
Set rsGetSelect = adoCon.Execute(str_sql)
If NOT rsGetSelect.EOF Then
While NOT rsGetSelect.EOF
If TRIM(rsGetSelect(id_value) ) = TRIM(id_match) Then
Response.Write "<option value='" & rsGetSelect(id_value) & "' selected style=""background-color: #FFF9A1"">" & rsGetSelect(id_descr) & "</option>"
Else
Response.Write "<option value='" & rsGetSelect(id_value) & "'>" & rsGetSelect(id_descr) & "</option>"
End If
rsGetSelect.MoveNext
Wend
Else
''no data found
Response.Write "<option value='0'>DB Error</option>"
End If
Response.Write "</select>"
End Sub
Sub SetSelectValuesAndHighligh tWithSelec t (strName, strClass, strJScript, str_sql, id_value, id_descr, id_match)
Dim rsGetSelect
Response.Write "<select name=""" & strName & """ class=""" & strClass & """" & strJScript & ">"
Response.Write "<option value='0'>[SELECT]</option >"
Set rsGetSelect = adoCon.Execute(str_sql)
If NOT rsGetSelect.EOF Then
While NOT rsGetSelect.EOF
If TRIM(rsGetSelect(id_value) ) = TRIM(id_match) Then
Response.Write "<option value='" & rsGetSelect(id_value) & "' selected style=""background-color: #FFF9A1"">" & rsGetSelect(id_descr) & "</option>"
Else
Response.Write "<option value='" & rsGetSelect(id_value) & "'>" & rsGetSelect(id_descr) & "</option>"
End If
rsGetSelect.MoveNext
Wend
Else
''no data found
Response.Write "<option value='0'>DB Error</option>"
End If
Response.Write "</select>"
End Sub
Sub WriteLabel(strText,strClas s)
Response.Write "<span class=""" & strClass & """>" & strText & "</span>"
End Sub
Sub WriteTextField(strName, strValue, strClass, strClass2, js)
Response.Write "<input type=""text"" name=""" & strName & """ value=""" & strValue & """ class=""" & strClass & """ " & js & " onfocus=""javascript:this. className= '" & strClass2 & "';"" onblur=""javascript:this.c lassName=' " & strClass & "';"" >"
End Sub
Sub WriteStaticTextField(strNa me, strValue, strClass, js)
Response.Write "<input type=""text"" name=""" & strName & """ value=""" & strValue & """ class=""" & strClass & """ " & js & " >"
End Sub
%>
here is the code for reg_form.asp
<%
If LEN(VolunteerID)>0 Then
strSQL="exec spEditVolunteer_GetVolunte
Set rsGetData=adocon.Execute(s
If NOT rsGetData.EOF Then
Prefix=rsGetData("Prefix")
FirstName=rsGetData("First
MiddleName=rsGetData("Midd
LastName=rsGetData("LastNa
BadgeTitle=rsGetData("Badg
Suffix=rsGetData("Suffix")
Email=rsGetData("Email")
Phone=rsGetData("DayTimePh
EveningPhone=rsGetData("Ev
AlternativePhone=rsGetData
AddressLine1=rsGetData("Ad
AddressLine2=rsGetData("Ad
City=rsGetData("City")
State=rsGetData("State")
ZipCode=rsGetData("ZipCode
Country=rsGetData("Country
ParishID=rsGetData("Parish
NeedsHousing=rsGetData("Ne
CanProvidehousing=rsGetDat
ProvideHousingOnly=rsGetDa
MaximumNumberShifts=rsGetD
Comments=rsGetData("Note")
Else
Prefix=""
FirstName=""
MiddleName=""
LastName=""
BadgeTitle=""
Suffix=""
Email=""
Phone=""
EveningPhone=""
AlternativePhone=""
AddressLine1=""
AddressLine2=""
City=""
State=""
ZipCode=""
Country="USA"
ParishID=""
NeedsHousing="False"
CanProvidehousing="True"
ProvideHousingOnly="False"
MaximumNumberShifts="0"
Comments=""
End If
Else
Prefix=""
FirstName=""
MiddleName=""
LastName=""
Suffix=""
Email=""
Phone=""
EveningPhone=""
AlternativePhone=""
AddressLine1=""
AddressLine2=""
City=""
State=""
ZipCode=""
Country="USA"
ParishID=""
NeedsHousing="False"
CanProvidehousing="False"
ProvideHousingOnly="False"
MaximumNumberShifts="0"
Comments=""
End If
%>
<table height="99%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/tran_pix_1x1.g
<td>
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr><td colspan="3"><%Response.Wri
<tr>
<td width="49%" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- NAME TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="center" colspan="3" bgcolor="#073971"><span class="regLabel2">Name</sp
<tr><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Pr
</td>
<td align="left" valign="top">
<% Call SetSelectValuesAndHighligh
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span>
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Firs
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4"> </
</td>
<td align="left" valign="top">
<% Call WriteTextField("MiddleName
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("LastName",
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4"> </
</td>
<td align="left" valign="top">
<% Call WriteTextField("Suffix", Suffix, "regtextbox2", "regtextbox2Highlight", "") %>
<span class="regLabel1"><i> 
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Ba
</td>
<td align="left" valign="top">
<% Call WriteTextField("BadgeTitle
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Em
</td>
<td align="left" valign="top">
<% Call WriteTextField("Email", Email, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span>
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Phon
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Ev
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Even
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Al
</td>
<td align="left" valign="top">
<% Call WriteStaticTextField("Alte
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" colspan="3" nowrap><table width="100%" height="1" cellspacing="0" border="0" cellpadding="0"><tr><td><s
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
</table>
<!-- END NAME TABLE -->
</td>
<td width="1%"><img src="Images/tran_pix_1x1.g
<td width="49%" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- ADDRESS TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="center" colspan="3" bgcolor="#073971"><span class="regLabel2">Address<
<tr><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("AddressLin
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> </
</td>
<td align="left" valign="top">
<% Call WriteTextField("AddressLin
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span>
</td>
<td align="left" valign="top">
<% Call WriteTextField("City", City, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel4">*</span>
</td>
<td align="left" valign="top" nowrap>
<% Call SetSelectValuesAndHighligh
<span class="regLabel4">*</span>
<% Call WriteTextField("ZipCode", ZipCode, "regtextbox2", "regtextbox2Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Co
</td>
<td align="left" valign="top" nowrap>
<% Call WriteTextField("Country", Country, "regtextbox1", "regtextbox1Highlight", "") %>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="bottom" nowrap colspan="3" height="5"><img src="images/h_line_1.gif" width="272" height="1"></td>
</tr>
<tr>
<!--<td align="left" valign="top" colspan="3" nowrap><table width="100%" height="1" cellspacing="0" border="0" cellpadding="0"><tr><td><s
<td align="left" valign="top" colspan="3" nowrap><table width="100%" height="1" cellspacing="0" border="0" cellpadding="0"><tr><td><s
</tr>
<tr id='ParishDiocese'>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> Pa
</td>
<td align="left" valign="top">
<% Call SetSelectValuesAndHighligh
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="middle" nowrap colspan="3" height="5"><img src="images/h_line_1.gif" width="272" height="1"></td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
</table>
<!-- END ADDRESS TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr id='HousingData'>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- HOUSING TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="3" bgcolor="#073971"><span class="regLabel2"> &n
<tr><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="provide" <% If CanProvidehousing="True" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> I can provide volunteer housing. </span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="require" <% If NeedsHousing="True" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> I require volunteer housing. (Housing for Southern Ohio Volunteers only). </span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="houseonly" <% If ProvideHousingOnly="True" Then Response.Write "checked"%>>
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> I can provide volunteer housing and I am not volunteering. </span>
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr>
<td align="left" valign="top" nowrap>
<input type="radio" name="housing_radio" value="na" <% If ProvideHousingOnly="False"
</td>
<td align="left" valign="top" nowrap>
<span class="regLabel1"> N/
</td>
<td width="100%"><img src="images/tran_pix_1x1.g
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
</table>
<!-- END HOUSING TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- AVAILABILITY TABLE -->
<%
NumOfPreDays=0
NumOfConventionDays=0
NumOfDays=0
strSQL="exec spVolunteerRegistration_Li
Set rsGetData=adocon.Execute(s
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
If rsGetData("PreConvention")
NumOfPreDays=NumOfPreDays + 1
Else
NumOfConventionDays=NumOfC
End If
NumOfDays=NumOfDays + 1
DayName=WEEKDAYNAME(WEEKDA
ShortDate=MONTH(rsGetData(
REDIM PRESERVE Date_Text(NumOfDays)
Date_Text(NumOfDays)=DayNa
REDIM PRESERVE Date_ID(NumOfDays)
Date_ID(NumOfDays)=rsGetDa
REDIM PRESERVE Vol_Available(NumOfDays)
REDIM PRESERVE Vol_Assigned(NumOfDays)
If LEN(VolunteerID)>0 Then
''********* See If Volunteer indicated this day as being available *******
Vol_Available(NumOfDays)="
strSQL_Sup="exec spEditVolunteer_GetVolunte
Set rsGetData_Sup=adocon.Execu
If NOT rsGetData_Sup.EOF Then
While NOT rsGetData_Sup.EOF
Vol_Available(NumOfDays)=V
rsGetData_Sup.MoveNext
Wend
End If
''********* See If this day has a shift assigned to the volunteer *******
Vol_Assigned(NumOfDays)=""
strSQL_Sup="exec spEditVolunteer_GetVolunte
Set rsGetData_Sup=adocon.Execu
If NOT rsGetData_Sup.EOF Then
While NOT rsGetData_Sup.EOF
Vol_Assigned(NumOfDays)=Vo
rsGetData_Sup.MoveNext
Wend
End If
Else
Vol_Available(NumOfDays)="
Vol_Assigned(NumOfDays)=""
End If
rsGetData.MoveNext
Wend
Else
NumOfPreDays=0
NumOfConventionDays=0
NumOfDays=0
End If
If NumOfDays=0 Then
Response.Write "<center><span class=""Label4"">No Convention dates have been set!</span></center>"
Response.End
End If
ColWidth=100 / (NumOfDays+2)
Bgcolour="#E5EBE8"
%>
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="0">
<tr><td valign="middle" width="100%" align="left" colspan="<%Response.Write NumOfDays+2%>" bgcolor="#073971"><span class="regLabel2"> &n
<tr>
<td align="left" valign="top" nowrap colspan="2" style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth * 2%>%"><span class="regLabel1"> </
<td bgcolor="#CAD2DC" align="center" valign="top" nowrap colspan="<%Response.Write NumOfPreDays%>" style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" width="<%Response.Write ColWidth * NumOfPreDays%>%"><span class="regLabel3">Pre Convention</span></td>
<td bgcolor="#CADCD3" align="center" valign="top" nowrap colspan="<%Response.Write NumOfConventionDays%>" style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" width="<%Response.Write ColWidth * NumOfConventionDays%>%"><s
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><span class="regLabel3">SELECT</
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" width="<%Response.Write ColWidth%>%"><span class="regLabel3">DATE</sp
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""middle"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><span class=""regLabel6"">" & Date_Text(X) & "</span></td>"
Next
%>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><img src="Images/btn_all_small.
<td align="center" valign="top" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" title="(6:00am - 1:00pm)" width="<%Response.Write ColWidth%>%"><span class="regLabel1">AM</span
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
If InStr(1,Vol_Available(X),"
Day_Check="checked"
Else
Day_Check=" OnClick='CountShifts()' "
End If
If InStr(1,Vol_Assigned(X),"A
Day_Disable="true"
Day_Check="checked OnClick='this.checked=true
Temp_BGcolour=Bgcolour
BGcolour="#FFE60F"
Else
Day_Disable="false"
Temp_BGcolour=Bgcolour
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""top"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><input type=""checkbox"" name=""day_" & X & "_am"" " & Day_Check & "><input type=""hidden"" name=""date_id_" & X & " value=""" & Date_ID(X) & """><input type=""hidden"" name=""day_" & X & "_am_disable"" value=""" & Day_Disable & """></td>"
Bgcolour=Temp_BGcolour
Next
%>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><img src="Images/btn_all_small.
<td align="center" valign="top" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" title="(12:00pm - 7:00pm)" width="<%Response.Write ColWidth%>%"><span class="regLabel1">PM</span
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
If InStr(1,Vol_Available(X),"
Day_Check="checked"
Else
Day_Check=" OnClick='CountShifts()' "
End If
If InStr(1,Vol_Assigned(X),"P
Day_Disable="true"
Day_Check="checked OnClick='this.checked=true
Temp_BGcolour=Bgcolour
BGcolour="#FFE60F"
Else
Day_Disable="false"
Temp_BGcolour=Bgcolour
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""top"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><input type=""checkbox"" name=""day_" & X & "_pm"" " & Day_Check & "><input type=""hidden"" name=""day_" & X & "_pm_disable"" value=""" & Day_Disable & """></td>"
Bgcolour=Temp_BGcolour
Next
%>
</tr>
<tr>
<td bgcolor="#E5EBE8" align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;" width="<%Response.Write ColWidth%>%"><img src="Images/btn_all_small.
<td align="center" valign="top" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;" title="(6:00am - 7:00pm)" width="<%Response.Write ColWidth%>%"><span class="regLabel1">ALL DAY</span></td>
<%
Bgcolour="#FFFFFF"
For X=1 to NumOfDays
If Bgcolour="#E5EBE8" Then
Bgcolour="#FFFFFF"
Else
Bgcolour="#E5EBE8"
End If
If InStr(1,Vol_Available(X),"
Day_Check="checked"
Else
Day_Check=" OnClick='CountShifts()' "
End If
If InStr(1,Vol_Assigned(X),"A
Day_Disable="true"
Day_Check="checked OnClick='this.checked=true
Temp_BGcolour=Bgcolour
BGcolour="#FFE60F"
Else
Day_Disable="false"
Temp_BGcolour=Bgcolour
End If
Response.Write "<td bgcolor=""" & Bgcolour & """ align=""center"" valign=""top"" nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"" width=""" & ColWidth & "%""><input type=""checkbox"" name=""day_" & X & "_ap"" " & Day_Check & "><input type=""hidden"" name=""day_" & X & "_ap_disable"" value=""" & Day_Disable & """></td>"
Bgcolour=Temp_BGcolour
Next
%>
</tr>
<tr bgcolor="#EDF1EF"><td colspan="<%Response.Write NumOfDays+2%>" align="left" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;"><span class="regLabel4">*</span>
<tr><td colspan="<%Response.Write NumOfDays+2%>" align="left" valign="middle"><span class="regLabel1"> Pl
<tr><td valign="middle" width="100%" align="left" colspan="<%Response.Write NumOfDays+2%>"><img src="images/tran_pix_1x1.g
</table>
<!-- END AVAILABILITY TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- SKILLS TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="4" bgcolor="#073971"><span class="regLabel4">*</span>
<%
SkillCounter=0
strSQL="exec spVolunteerRegistration_Li
Set rsGetData=adocon.Execute(s
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
SkillCounter=SkillCounter+
Bgcolour="#FFFFFF"
If LEN(VolunteerID)>0 Then
strSQL_Sup="exec spEditVolunteer_GetVolunte
Set rsGetData_Sup=adocon.Execu
If NOT rsGetData_Sup.EOF Then
Vol_This_Skill="checked"
Else
Vol_This_Skill=""
End If
strSQL_Sup="exec spGetShiftsForVolunteer " & VolunteerID
Set rsGetData_Sup = adoCon.Execute(strSQL_Sup)
While NOT rsGetData_Sup.EOF
If rsGetData_Sup("SkillID")=r
Vol_Skill_Assigned=" OnClick='this.checked=true
BGcolour="#FFE60F"
Else
Vol_Skill_Assigned=""
End If
rsGetData_Sup.MoveNext
Wend
Else
Vol_This_Skill=""
Vol_Skill_Assigned=""
End If
Response.Write "<tr>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<input type=""checkbox"" name=""skill_" & rsGetData("SkillID") & """ " & Vol_This_Skill & " " & Vol_Skill_Assigned & ">"
Response.Write "<input type=""hidden"" name=""skill_id_" & SkillCounter & """ value=""" & rsGetData("SkillID") & """>"
Response.Write "<input type=""hidden"" name=""skill_descr_" & rsGetData("SkillID") & """ value=""" & rsGetData("SkillDescr") & """>"
Response.Write "</td>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<span class=""regLabel1"">" & rsGetData("SkillDescr") & " </span>"
Response.Write "</td>"
Response.Write "<td nowrap>"
Response.Write "<span class=""regLabel1""><i>e.g
Response.Write "</td>"
Response.Write "<td width=""100%""><img src=""images/tran_pix_1x1.
Response.Write "</tr>"
rsGetData.MoveNext
Wend
Else
End If
%>
<tr height="100%"><td colspan="4" valign="top"><input type="hidden" name="numskills" value="<%Response.Write SkillCounter%>"><img src="images/tran_pix_1x1.g
</table>
<!-- END SKILLS TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- EXPERIENCE TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="4" bgcolor="#073971"><span class="regLabel2"> &n
<%
SkillCounter=0
strSQL="exec spVolunteerRegistration_Li
Set rsGetData=adocon.Execute(s
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
SkillCounter=SkillCounter+
Bgcolour="#FFFFFF"
If LEN(VolunteerID)>0 Then
strSQL_Sup="exec spEditVolunteer_GetVolunte
Set rsGetData_Sup=adocon.Execu
If NOT rsGetData_Sup.EOF Then
Vol_This_Skill="checked"
Else
Vol_This_Skill=""
End If
Else
Vol_This_Skill=""
End If
Response.Write "<tr>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<input type=""checkbox"" name=""experience_" & rsGetData("ExperienceID") & """ " & Vol_This_Skill & ">"
Response.Write "<input type=""hidden"" name=""experience_id_" & SkillCounter & """ value=""" & rsGetData("ExperienceID") & """>"
Response.Write "<input type=""hidden"" name=""experience_descr_" & rsGetData("ExperienceID") & """ value=""" & rsGetData("ExperienceDescr
Response.Write "</td>"
Response.Write "<td nowrap bgcolor=""" & BGcolour & """>"
Response.Write "<span class=""regLabel1"">" & rsGetData("ExperienceDescr
Response.Write "</td>"
Response.Write "<td nowrap>"
If LEN(rsGetData("ExampleJobs
Response.Write "<span class=""regLabel1""><i>e.g
Else
Response.Write "<span class=""regLabel1"">
End If
Response.Write "</td>"
Response.Write "<td width=""100%""><img src=""images/tran_pix_1x1.
Response.Write "</tr>"
rsGetData.MoveNext
Wend
Else
End If
%>
<tr height="100%"><td colspan="4" valign="top"><input type="hidden" name="numexperience" value="<%Response.Write SkillCounter%>"><img src="images/tran_pix_1x1.g
</table>
<!-- END EXPERIENCE TABLE -->
</td>
</tr>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- ADDITIONAL INFO TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="3" bgcolor="#073971"><span class="regLabel2"> En
<tr>
<td align="center" valign="top" nowrap colspan="3">
<textarea name="Comments" style="width: 90%; "><%Response.Write Comments%></textarea>
</td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
</table>
<!-- END ADDITIONAL INFO TABLE -->
</td>
</tr>
<% If ShowShifts="True" AND LEN(VolunteerID)>=1 Then %>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- ASSIGNED SHIFTS TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="4" bgcolor="#073971"><span class="regLabel2"> &n
<tr>
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;"><span class="regLabel3">DATE</sp
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"><span class="regLabel3">START</s
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"><span class="regLabel3">END</spa
<td align="center" valign="middle" nowrap style="border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"><span class="regLabel3">AREA</sp
<%
strSQL="exec spEditVolunteer_GetVolunte
Set rsGetData=adocon.Execute(s
If NOT rsGetData.EOF Then
While NOT rsGetData.EOF
Response.Write "<tr>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 0px;"">"
Response.Write "<span class=""regLabel1"">
Response.Write "</td>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"">"
Response.Write "<span class=""regLabel1"">
Response.Write "</td>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"">"
Response.Write "<span class=""regLabel1"">
Response.Write "</td>"
Response.Write "<td nowrap style=""border-color: #c0c0c0; border-style: solid; border-width: 0px 0px 1px 1px;"">"
Response.Write "<span class=""regLabel1"">
Response.Write "</td>"
Response.Write "</tr>"
rsGetData.MoveNext
Wend
Else
Response.Write "<tr>"
Response.Write "<td nowrap colspan=""4"" align=""center"">"
Response.Write "<span class=""regLabel1"">No shifts have been assigned for this volunteer</span>"
Response.Write "</td>"
Response.Write "</tr>"
End If
%>
<tr height="100%"><td colspan="4" valign="top"><img src="images/tran_pix_1x1.g
</table>
<!-- END ASSIGNED SHIFTS TABLE -->
</td>
</tr>
<%End If%>
<% If ShowSubmit="True" Then %>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
<tr>
<td colspan="3" align="left" valign="top" style="border-color: #073971; border-style: solid; border-width: 1px 1px 1px 1px;">
<!-- SUBMIT TABLE -->
<table width="100%" height="100%" cellspacing="0" border="0" cellpadding="1">
<tr><td valign="middle" width="100%" align="left" colspan="3" bgcolor="#073971"><span class="regLabel2"> &n
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1">Please check over the information you have entered, if everything is correct click the Submit button below. You will receive a notice that your application has been submitted.</span>
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="3">
<span class="regLabel1"> </
<input type="button" name="submit_form" value="Submit" class="regbutton1" OnClick="ValidateForm()">
<span class="regLabel3"> <<
<input type="button" name="preview_form" value="Preview" class="regbutton1" OnClick="PreviewForm()" >
<span class="regLabel3"> <<
</td>
</tr>
<tr height="100%"><td colspan="3" valign="top"><img src="images/tran_pix_1x1.g
</table>
<!-- END SUBMIT TABLE -->
</td>
</tr>
<%End If%>
<tr><td colspan="3"><img src="images/tran_pix_1x1.g
</table>
</td>
<td><img src="images/tran_pix_1x1.g
</tr>
</table
<%
Sub SetSelectValues(strName, strClass, strJScript, str_sql, id_value, id_descr)
Dim rsGetSelect
Response.Write "<select name=""" & strName & """ class=""" & strClass & """" & strJScript & ">"
Set rsGetSelect = adoCon.Execute(str_sql)
If NOT rsGetSelect.EOF Then
While NOT rsGetSelect.EOF
Response.Write "<option value='" & rsGetSelect(id_value) & "'>" & rsGetSelect(id_descr) & "</option>"
rsGetSelect.MoveNext
Wend
Else
''no data found
Response.Write "<option value='0'> </option>"
End If
Response.Write "</select>"
End Sub
Sub SetSelectValuesAndHighligh
Dim rsGetSelect
Response.Write "<select name=""" & strName & """ class=""" & strClass & """" & strJScript & ">"
Set rsGetSelect = adoCon.Execute(str_sql)
If NOT rsGetSelect.EOF Then
While NOT rsGetSelect.EOF
If TRIM(rsGetSelect(id_value)
Response.Write "<option value='" & rsGetSelect(id_value) & "' selected style=""background-color: #FFF9A1"">" & rsGetSelect(id_descr) & "</option>"
Else
Response.Write "<option value='" & rsGetSelect(id_value) & "'>" & rsGetSelect(id_descr) & "</option>"
End If
rsGetSelect.MoveNext
Wend
Else
''no data found
Response.Write "<option value='0'>DB Error</option>"
End If
Response.Write "</select>"
End Sub
Sub SetSelectValuesAndHighligh
Dim rsGetSelect
Response.Write "<select name=""" & strName & """ class=""" & strClass & """" & strJScript & ">"
Response.Write "<option value='0'>[SELECT]</option
Set rsGetSelect = adoCon.Execute(str_sql)
If NOT rsGetSelect.EOF Then
While NOT rsGetSelect.EOF
If TRIM(rsGetSelect(id_value)
Response.Write "<option value='" & rsGetSelect(id_value) & "' selected style=""background-color: #FFF9A1"">" & rsGetSelect(id_descr) & "</option>"
Else
Response.Write "<option value='" & rsGetSelect(id_value) & "'>" & rsGetSelect(id_descr) & "</option>"
End If
rsGetSelect.MoveNext
Wend
Else
''no data found
Response.Write "<option value='0'>DB Error</option>"
End If
Response.Write "</select>"
End Sub
Sub WriteLabel(strText,strClas
Response.Write "<span class=""" & strClass & """>" & strText & "</span>"
End Sub
Sub WriteTextField(strName, strValue, strClass, strClass2, js)
Response.Write "<input type=""text"" name=""" & strName & """ value=""" & strValue & """ class=""" & strClass & """ " & js & " onfocus=""javascript:this.
End Sub
Sub WriteStaticTextField(strNa
Response.Write "<input type=""text"" name=""" & strName & """ value=""" & strValue & """ class=""" & strClass & """ " & js & " >"
End Sub
%>
ASKER
this is what I get when I use the code you suggested
Prefix : [ Select ]
FirstName :
MiddleName :
LastName :
This is the code for preview_form.asp
<%@ Language=VBScript %>
<%
Prefix=trim(request("selec t_prefix") )
FirstName=trim(request("Fi rstName"))
MiddleName=trim(request("M iddleName" ))
LastName=trim(request("Las tName"))
BadgeTitle=trim(request("B adgeTitle" ))
Suffix=trim(request("Suffi x"))
Email=trim(request("Email" ))
Phone=trim(request("Phone" ))
EveningPhone=trim(request( "EveningPh one"))
AlternativePhone=trim(requ est("Alter nativePhon e"))
Response.write "Prefix : " & Prefix & "<br>"
Response.write "FirstName : " & FirstName & "<br>"
Response.write "MiddleName : " & MiddleName & "<br>"
Response.write "LastName : " & LastName & "<br>"
%>
Prefix : [ Select ]
FirstName :
MiddleName :
LastName :
This is the code for preview_form.asp
<%@ Language=VBScript %>
<%
Prefix=trim(request("selec
FirstName=trim(request("Fi
MiddleName=trim(request("M
LastName=trim(request("Las
BadgeTitle=trim(request("B
Suffix=trim(request("Suffi
Email=trim(request("Email"
Phone=trim(request("Phone"
EveningPhone=trim(request(
AlternativePhone=trim(requ
Response.write "Prefix : " & Prefix & "<br>"
Response.write "FirstName : " & FirstName & "<br>"
Response.write "MiddleName : " & MiddleName & "<br>"
Response.write "LastName : " & LastName & "<br>"
%>
ASKER
Third
I noticed something that could explain why the data is not getiing set
Error Type:
Microsoft JScript compilation (0x800A03EC)
Expected ';'
/preview_form.asp, line 16, column 15
Response.write "Prefix : " & Prefix & "<br>";
--------------^
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Page:
POST 2739 bytes to /preview_form.asp
POST Data:
volunteer_id=&redirect_to= thankyou.a sp&form_ac tion=regis ter_save.a sp&select_ prefix=%5B +Select+%5 D&FirstNam e=&MiddleN ame=&LastN ame=&Suffi x=&BadgeTi tle=&Email =&Phone=&E veningPhon e=&Alterna tivePhone= &Add .
I noticed something that could explain why the data is not getiing set
Error Type:
Microsoft JScript compilation (0x800A03EC)
Expected ';'
/preview_form.asp, line 16, column 15
Response.write "Prefix : " & Prefix & "<br>";
--------------^
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Page:
POST 2739 bytes to /preview_form.asp
POST Data:
volunteer_id=&redirect_to=
ASKER
Third,
I am sorry , the code you sent did work, the issue was I was not entering the data on the register form
I am sorry , the code you sent did work, the issue was I was not entering the data on the register form
sorry for arriving late. it seems you solved the problem now.
"Microsoft JScript compilation (0x800A03EC)"
are you using jscript on the server-side?
"Microsoft JScript compilation (0x800A03EC)"
are you using jscript on the server-side?
<%
Prefix=trim(request("selec
FirstName=trim(request("Fi
MiddleName=trim(request("M
LastName=trim(request("Las
BadgeTitle=trim(request("B
Suffix=trim(request("Suffi
Email=trim(request("Email"
Phone=trim(request("Phone"
EveningPhone=trim(request(
AlternativePhone=trim(requ
Response.write "Prefix : " & Prefix & "<br>"
Response.write "FirstName : " & FirstName & "<br>"
Response.write "MiddleName : " & MiddleName & "<br>"
Response.write "LastName : " & LastName & "<br>"
%>