This topic is locked

calculate from the user confirm message

3/15/2012 5:12:02 PM
PHPRunner General questions
D
danaci author

hi,

calculate from the user confirm message is it possible?
echo "<script>if (confirm('Do you want to calculate this record?'))
calculat here
</script>";
best regards.

C
cgphp 3/15/2012

In the "Javascript onload" event, you can show the confirm message when a field loses the focus. If the OK button is clicked, the remaining fields are calculated automatically.

D
danaci author 3/16/2012

dear cristian,

excuse me,

calculate code must be php.
echo "<script>if (confirm('Do you want to calculate this record?'))
calculat here php code(not js)
</script>";
best regards.

C
cgphp 3/16/2012

Please, tell us more details about your request.

D
danaci author 3/16/2012

hi,
echo "<script>if (confirm('Do you want to calculate this record?'))
customQUERY("insert sql");

$values["xx"]=$values["zz"];

bla bla..
</script>";