G
i have a page that has multipe forms that do almost the same thing but
just to diffrent database entrys. i want a "are you sure?" button to
come up when the submit button is pressed and if ok is pressed then
that from to be submited.currently i have
function disp_confirm(id)
{
var r=confirm("Are you sure you want to delete it?");
if (r==true)
{
document.getElementById(id).submit()
}
}
<form name="<%=id%>" id="<%=id%>" action="submitpage.asp"
method="post">
<input type="hidden" name="id" value="<%=id%>">
<tr>
<td><%=text%></td>
<td><%=text2%></td>
<td><input type="button" value="delete" onClick="disp_confirm(<%=id
%>)"></td>
</tr>
</form>
can anyone give me some pointers please?
just to diffrent database entrys. i want a "are you sure?" button to
come up when the submit button is pressed and if ok is pressed then
that from to be submited.currently i have
function disp_confirm(id)
{
var r=confirm("Are you sure you want to delete it?");
if (r==true)
{
document.getElementById(id).submit()
}
}
<form name="<%=id%>" id="<%=id%>" action="submitpage.asp"
method="post">
<input type="hidden" name="id" value="<%=id%>">
<tr>
<td><%=text%></td>
<td><%=text2%></td>
<td><input type="button" value="delete" onClick="disp_confirm(<%=id
%>)"></td>
</tr>
</form>
can anyone give me some pointers please?