Hi,
I want to make a standard-function that handles "Are you sure"-type
questions.
In my idea it should look something like this:
<code>
Function deleteitem($ite m)
{
if (checkback("Are you sure you want to delete this item?"))
{
# delete SQL function code
}
}
</code>
where the code of the function checkback will ask a simple yes/no question.
As far as I found out, this is difficult since you need two steps to get an
answer from a html page. If there any standard way how to do this?
thanks
Oliver
I want to make a standard-function that handles "Are you sure"-type
questions.
In my idea it should look something like this:
<code>
Function deleteitem($ite m)
{
if (checkback("Are you sure you want to delete this item?"))
{
# delete SQL function code
}
}
</code>
where the code of the function checkback will ask a simple yes/no question.
As far as I found out, this is difficult since you need two steps to get an
answer from a html page. If there any standard way how to do this?
thanks
Oliver
Comment