Page 1 of 1

onklick confirmation

Posted: Sat Jul 31, 2004 5:20 pm
by juline
Hi,

the onclick confirmation is working within html as following, but how do i do the same in php ?

Code: Select all

<a href="deleteCourse.php?course_nr=<?php  echo $course_nr;?>" onClick="return(confirm('sure?'))">&#1111;del]</a>

Posted: Sat Jul 31, 2004 5:21 pm
by feyd
have deleteCourse.php ask for confirmation.

Posted: Sat Jul 31, 2004 5:22 pm
by tim
use the .php page to check,

isset(); & empty() are good functions for confirmation deals.

// edit, feyd yet again beats me