Jump to content

[SOLVED] target_blank Help


williwaw

Recommended Posts

Wow, that was fast!  Thanks again for your help...it works great.  One more question-same problems but the code is a little different and I can't seem to make it work.

echo "<p><href={$item->description}</p>";

Sorry about being a noob, but I did not notice the difference when I originally posted this thread.

 

Cheers,

williwaw

Ok, what I did was put quotes " round the url (which isnt mandatory but is strongly suggested) and then escaped them with backslashes, so that php doesn't the the quote is ending the echo.

 

I then simply added target="_blank" escaped with backslashes aswell, so target=\"_blank\"

 

:)

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.