RE: [PHP] (Urgent!!!)Image reference
| From: | Tan JH | Date: | Tue, 19 Dec 2000 10:44:53 +0000 |
| Subject: | RE: [PHP] (Urgent!!!)Image reference | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-31020@lists.php.net to get a copy of this message | ||
Thanks ... the zip file enclosed contains both the files that i mentioned. Actually i need to get
some of the input data besides knowing that the user chose to download, delete or rename a
particular file. Could anyone please help?
Thank you once again...
Rgds,
JH
-----Original Message-----
From: Dave VanAuken dave@hawk-systems.com
Sent: Mon, 18 Dec 2000 09:31:42 -0500
To: php-general@lists.php.net
Subject: RE: [PHP] (Urgent!!!)Image reference
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
--
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
___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based
communications center.
Visto.com. Life on the Dot.
Attachment: [application/zip] files.zip
Attachment: [application/zip] files.zip