PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
juline
Forum Commoner
Posts: 37 Joined: Thu Jul 15, 2004 9:05 am
Post
by juline » Sat Jul 31, 2004 5:20 pm
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?'))">їdel]</a>
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Jul 31, 2004 5:21 pm
have deleteCourse.php ask for confirmation.
tim
DevNet Resident
Posts: 1165 Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio
Post
by tim » Sat Jul 31, 2004 5:22 pm
use the .php page to check,
isset(); & empty() are good functions for confirmation deals.
// edit, feyd yet again beats me