Yojance Posted July 2, 2006 Share Posted July 2, 2006 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. Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/ Share on other sites More sharing options...
Drumminxx Posted July 2, 2006 Share Posted July 2, 2006 it would be best to post the code your using Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/#findComment-51845 Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 you mention browserif you can see images in genrall on webites then your browser has images onso that woudnt be the problam as advised post your code. Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/#findComment-51849 Share on other sites More sharing options...
Yojance Posted July 2, 2006 Author Share Posted July 2, 2006 Here is my lame code.[code]<?phpif(isset($_POST['img'])) {$IMG = $_POST['img'];$img = ($_POST['IMG'] / 100);$imgdir = 'images/'$chopurl = 'http://mysite.com/';echo '<img src="'.$imgdir.$IMG.'.jpg" />';}?>[/code]Thanks for the fast response. Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/#findComment-51856 Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 are you sure that the form set to name="img" useually submit name="submit"<?phpif(isset($_POST['submit])) {$IMG = ($_POST(['img']));$img="whatever.jpg";$imgdir = "images/";$url = "http://mysite.com/";echo "<img src='$url$imgdir$img' />";}?> Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/#findComment-51859 Share on other sites More sharing options...
Yojance Posted July 2, 2006 Author Share Posted July 2, 2006 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. Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/#findComment-51864 Share on other sites More sharing options...
redarrow Posted July 2, 2006 Share Posted July 2, 2006 anytime my freind. Link to comment https://forums.phpfreaks.com/topic/13426-displaying-imgs-its-not-working/#findComment-51865 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.