Jump to content


Photo

Displaying IMGs (It's not working.)


  • Please log in to reply
6 replies to this topic

#1 Yojance

Yojance
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 02 July 2006 - 03:53 AM

I'm just wrote a very simple script that creates a link to an image. When I put all the code into <img src="all php code here /> the image won't display.
I think I heard something about letting the browser know that an image is coming, I looked for it but I did not find it.
Could anyone help me.
Thanks.

#2 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 02 July 2006 - 03:56 AM

it would be best to post the code your using
:: gucci.com ::
:: blockbuster.com ::

--------------------

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 02 July 2006 - 04:02 AM

you mention browser

if you can see images in genrall on webites then your browser has images on

so that woudnt be the problam

as advised post your code.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#4 Yojance

Yojance
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 02 July 2006 - 04:13 AM

Here is my lame code.
<?php
if(isset($_POST['img'])) {
$IMG = $_POST['img'];
$img = ($_POST['IMG'] / 100);
$imgdir = 'images/'
$chopurl = 'http://mysite.com/';
echo '<img src="'.$imgdir.$IMG.'.jpg" />';
}

?>

Thanks for the fast response.

#5 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 02 July 2006 - 04:24 AM

are you sure that the form set to name="img" useually submit name="submit"



<?php
if(isset($_POST['submit])) {

$IMG = ($_POST(['img']));


$img="whatever.jpg";

$imgdir = "images/";

$url = "http://mysite.com/";

echo "<img src='$url$imgdir$img' />";

}

?>
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#6 Yojance

Yojance
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 02 July 2006 - 04:55 AM

Tried it and it works, plus I have a friend who just signed on MSN who is going to help me. Thank you so much.

#7 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 02 July 2006 - 05:01 AM

anytime my freind.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users