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. Quote 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 Quote 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. Quote 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. Quote 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' />";}?> Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.