Miss-Ruth Posted October 22, 2009 Share Posted October 22, 2009 Server side - PHP receives a path to an image, how how do I send the image through instead of the path? Hope that makes scence. I've got a folder on the server with several images. I need to send the selected one (upon what the viewer selects) from PHP. How to code? Link to comment https://forums.phpfreaks.com/topic/178579-solved-script-help/ Share on other sites More sharing options...
trq Posted October 22, 2009 Share Posted October 22, 2009 Assuming the path is coming from a form. <?php if (isset($_POST['imgpath'])) { echo "<img src='{$_POST['imgpath']}' />"; } Link to comment https://forums.phpfreaks.com/topic/178579-solved-script-help/#findComment-941771 Share on other sites More sharing options...
Miss-Ruth Posted October 22, 2009 Author Share Posted October 22, 2009 WOW!!! that was pretty quick! Thanks! I'll give it a try. Link to comment https://forums.phpfreaks.com/topic/178579-solved-script-help/#findComment-941773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.