Hey I'm trying to display this:

echo "<a href="javascript:createBBtag('[bold]','[/bold]','txtA')"><strong>B</strong></a>";

It gives errors though! Is there a way around it? Thanks :)

You might need to escape the double quotes (") which is being echoed in the HTML... :) The modified code will look like as follows.

echo "<a href=\"javascript:createBBtag('[bold]','[/bold]','txtA')\"><strong>B</strong></a>";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.