Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a problem where form values go missing. There are several forms on one page with indivdual names (i.e. form1, form2) . We have implemented recordset pagination within one particular form.
Along with the pagination edit and delete options are also available for a particualr record in record set. The problem what we are facing is when we try to edit the record the form values are not coming to the posted page.

I have mentioned the code snippet as below:
Function someFunction
data1=""
<form name="Xyz" method="post" action="edit.asp">
s=s&"<script>function relsubmit() {alert(" & data1 &"); rjob.submit(); } </script>"
//Pagination code display only 30 records per page
Do While Not ( rss.Eof Or rss.AbsolutePage <> iPage )
//some code
if (Action="RELEdit") then
s=s&"" & drsel &""
s=s&""
else
end if
datadr1=datadr1& rss.Fields(0).value & ","
rss.MoveNext
loop
if (Action="RELEdit") then
s=s&"<input type=hidden name=data1 value=""" & datadr1 & "">"
s=s&"<input type=hidden name=data2 value=""" &datadr2 & """><</form>"

end if

end of function here
We have tried to get the value in edit.asp page using request.form("data1") the values are coming empty also we tried alert in the relsubmit function it is showing as empty.
Can any one pls answer our querries where the values are missing.
Regards
Prashant P

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900