RE: [PHP] (Urgent!!!)Image reference

From: Date: Mon, 18 Dec 2000 14:31:42 +0000
Subject: RE: [PHP] (Urgent!!!)Image reference
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30863@lists.php.net to get a copy of this message
Posting some of your code in the future would allow an explanation/modification based on your actual site... just FYI in your document.php: <a href="delete.php?button=download"><img src="download.gif"></a> <a href="delete.php?button=delete"><img src="delete.gif"></a> <a href="delete.php?button=rename"><img src="rename.gif"></a> in your delete.php: if($button=='download') { # do your download stuff } elseif (button=='delete') { # do you delete stuff } elseif (button=='rename') { # you guessed it, do your rename stuff } else { # no button pushed, chastize user } you may also want to look in the manual for the "case" function which can be used in place of the "if" function above. Dave -----Original Message----- From: jenhwi@visto.com [mailto:jenhwi@visto.com] Sent: Monday, December 18, 2000 8:40 AM To: php-general@lists.php.net Subject: [PHP] (Urgent!!!)Image reference Hi, I have 3 images in document.php files, which represents the download, delete and also rename. When I click on any of the image, it will bring to a new file, which is delete.php. The problem is I do not know which image the user has clicked in the document.php. Can anyone help me by telling me how I can know which image the user has clicked when the delete.php file is running. Thanks Rgds, JH ___________________________________________________________________________ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#30863) next »