For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2004 > Displaying image in browser but not source









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Displaying image in browser but not source
Angus SC2

2004-05-27, 10:32 am

Hi, I have an 'invisible' image I would like to display in a php script I
have just written. It does it's job fine, the only problem is that in IE if
you go to view/source the code for the image is shown

Here is what I'm doing at the moment...

echo "<img
src=\"http://www.mysite.com/scripts/sale.php?TotalCost=$rake&OrderID=2\"widt
h=1 height=1>";

where rake is a php variable.

Basically any way of of calling calling sale.php and passing it TotalCost
and OrderID would be fine, as long as the user cannot see the code.

Sorry, I've only been using php a few days

Thanks for any advice
Angus




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com