Jump to content

weird image problem


ultimachris

Recommended Posts

Hi there all, ok, got a strange issue....when i physically view the images.php page i can see my image bright and wonderful, but when i use

 

<?php include("images.php"); ?>

 

as an include into my other php document it gives off an image error

the base code reports <img src=''> and no URL.

 

the images.php script is as follows:

 

<?php

 

$image = $_POST['images'];

echo "<img src='$image'>";

 

?>

 

clearly this code works as its made from user input in a form when they click submit the $image variable is from the form.

 

So how come i can view it as images.php but not when its included?

 

Hope you wizards can help me!

 

Chris

Link to comment
https://forums.phpfreaks.com/topic/153107-weird-image-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.