Jump to content

[SOLVED] Php echoing src


abch624

Recommended Posts

Hi Guys,

 

I have HTMl embedded into PHP i.e. php echos a few HTML lines and a bit of this code is bellow:

echo '">						
					<input type="image" src="./images/UI/searchbutton.jpg" name="searchButton" alt="Search" tabindex="2">
				</form>
			</td>
		</tr>';

If you have a look closely there is the section src="./images/UI/searchbutton.jpg" that is where the picture is on the database that I need to be returned and trust me that is the correct path!!!!

Now in the browser what happens I only get src="searchbutton.jpg"!!!!!!!!! That is not right and should not be like that....

 

My main question is why does it not pass the correct URL??????

 

Please help guys.....

Link to comment
https://forums.phpfreaks.com/topic/115420-solved-php-echoing-src/
Share on other sites

you sure you are not passing the filename some where else too?

 

try changing the filename for debugging to something like

 

src="./images/UI/searchbutton_new.jpg"

 

it is possible that the problem is some where else :) because i dont see any issues here or may be i missed out.

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.