CodeIgniter Forums
echo anchor not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: echo anchor not working (/showthread.php?tid=51567)



echo anchor not working - El Forum - 05-09-2012

[eluser]bill19[/eluser]
Hi everyone,

I am trying to use the url helpers anchor function to generate a clickable link in my form
( as per http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html ), but its not working.

Here is my form:

Code:
<html>
<head>
<title>my form</title>
</head>
<body>

<h3>Your form was successfully submitted!</h3>

echo anchor('news/local/123', 'My News', 'title="News title"');


&lt;/body&gt;
&lt;/html&gt;

The output looks like:

Quote:Your form was successfully submitted!
echo anchor('news/local/123', 'My News', 'title="News title"');

what am i doing wrong?

Thanks in advance,

Bill


echo anchor not working - El Forum - 05-09-2012

[eluser]vrencianz[/eluser]
Code:
&lt;?php
echo anchor('news/local/123', 'My News', 'title="News title"');
?&gt;



echo anchor not working - El Forum - 05-09-2012

[eluser]bill19[/eluser]
Thank you!