Forum Moderators: coopster
any one can help please?
javascript:
into the location bar then hit enter, this will give you a js debugging window that will help with the error
I am guessing though that the single quotes here
'window.location='formInsertTable.php''
are your problem all that will be in that onclick is
'window.location='
due to the single quote ending the param
<?php
echo "values inserted do you want to all other patient:";
echo "<input type=\"button\" ";
echo "value=\"OK\" ";
echo "onClick=\"location.href='formInsertTable.php'\">";
?>
or this, using <button>
echo "values inserted do you want to all other patient:";
echo "<button onCLICK=\"window.location='formInsertTable.php'\">";
echo "OK";
echo "</button>";