onklick confirmation

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

Post Reply
juline
Forum Commoner
Posts: 37
Joined: Thu Jul 15, 2004 9:05 am

onklick confirmation

Post 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>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

have deleteCourse.php ask for confirmation.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

use the .php page to check,

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

// edit, feyd yet again beats me
Post Reply