Hi,
In many cases, javascript alert, confirm or prompt are really useful and necessary. Some SC apps do not have the options for this.
In my case, i have a blank application. the user will be asked for confirmation. then a php script which is dependent to a variable will be executed depending on the response of the user.
Ex:
echo “<script>
if (confirm(‘Are you sure?’))
{
$test = ‘Y’; //how to do this right
}
else
{
$test = ‘Y’; //how to do this right
}
</script>”;
if($test==‘Y’)
{
//do this
}
else
{
//do that
}
The question is how to have the value of the variable $test from javascript and will be used in php?