I have made an asp-page. When pressing Submit, the form loads a
javascript, for evaluating the input values. The asp-page is being
reloaded from the javascript, to save the input-values.
The evaluation-script is running fine, but when the ASP-script has to
save the value in txtFolder, the record is being added, but the saved
value from input 'Folder' is empty.
The tFolder-value is used when the ASP-page is loading values to edit
existing records.
<%
' ASP script
rs.fields("Folder").value = Trim(Request.Form("txtFolder"))
%>
<script type="text/javascript">
function EvaluateValues(ASPFile){
if (TestValues() == true) {
document.location.href=ASPFile;
}
}
</script>
<form name="MyForm" method="Post"
action="javascript:EvaluateValues('Paper.asp?mode= Add')">
<input type="text" value="<%=tFolder%>" maxlength="1" name="txtFolder"
size="1">
<input type="submit" value="Save" name="B1"></form>
But where does the link break.
I hope you can see my problem. No values are being saved.
Thanks
Jorgen