PenguinHead
Programmer
I am writing an archiving function that backs up the selected file to a variable folder (2006, 2007...) based on the year the user selects.
The <SELECT> form is located in default.asp and the actual archive function is located in fm_include.asp. fm_include.asp is an included file in default.asp.
My problem is that I can't get the year selected in the form to become the name of the folder to which the archived file should be sent. (It might be totally simple and I've just missed it =)
default.asp code:
<form method="POST" action="fm_include.asp?action=archivefile&path=<%=sPath%>">
<select name="archiveyear" size="1">
<option value="2005">2005</option>
<option value="2006" selected="selected">2006</option>
<option value="2007">2007</option>
</select>
</form>
fm_include.asp code:
sPathArch = sPath & Request.Form("archiveyear")
The <SELECT> form is located in default.asp and the actual archive function is located in fm_include.asp. fm_include.asp is an included file in default.asp.
My problem is that I can't get the year selected in the form to become the name of the folder to which the archived file should be sent. (It might be totally simple and I've just missed it =)
default.asp code:
<form method="POST" action="fm_include.asp?action=archivefile&path=<%=sPath%>">
<select name="archiveyear" size="1">
<option value="2005">2005</option>
<option value="2006" selected="selected">2006</option>
<option value="2007">2007</option>
</select>
</form>
fm_include.asp code:
sPathArch = sPath & Request.Form("archiveyear")