Welcome Guest, Not a member yet? Register   Sign In
image not appearing - disallowed character
#1

[eluser]Incito Networks[/eluser]
Hi All ,


Using Codeigniter and Twitter Bootstrap for a website.

For one of the pages the header and footer is using a view and the content is a html fetched from the database.

In this html I have an IMG tag for displaying an image on the page.

When I use this for the IMG tag it works:

Code:
<p><img  src="http://caferenaissance.com/CI/assets/img/events2.jpg"></p>

When I use this , it does NOT work:

Code:
<p><img  src="&lt;?php echo base_url(); ?&gt;assets/img/events2.jpg"></p>

However when the image does not appear and when I right click missing image and choose to show it in a new tab I get:

Code:
Disallowed Key Characters.

Looking at URL of this page it is:

Code:
http://caferenaissance.com/CI/content/&lt;?php echo base_url(); ?&gt;assets/img/events2.jpg

Any suggestions on what the problem could be ?

using the base_url() method above does seem to be working fine on other pages when I am not fetching the html content from the db.

Seems like it is doing some kind of URI validation before running the php bit to get the full URI.

Any suggestions on why this is happening ?


Messages In This Thread
image not appearing - disallowed character - by El Forum - 12-01-2012, 09:46 AM
image not appearing - disallowed character - by El Forum - 12-01-2012, 12:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB