A
Anonymous
Guest
i am trying to use conform dialog before i commit to delete a file. I am having problems passing the value from the javascript (i:e the choice) to php the value i want is in temp which is outside php. any idea how i can pass this value? :?:
Code:
echo "<tr><td align=right>";
?>
<input type=submit name=button value='Delete' onClick="temp = window.confirm('Would you like to confirm?'); window.status=(temp)?'confirm: true':'confirm: false';"></td></tr>
<?
echo "</table>";
echo "<input type=hidden name='db' value='".$db."'>";
echo "<input type=hidden name='choice' value='".$temp ."'>";
echo "</form>";