?
Solved

<?php echo on <a href - need help people

Posted on 2011-09-22
1
Medium Priority
?
424 Views
Last Modified: 2012-05-12
How can i make the following code to work?

I use a .php file and some of the code is,

echo '<a href="http://www.textlink.com/"><?php echo $theData; ?></a>';

Is not display nothing on the anchor text, but i assure you the variable $theData is not an empty text.
0
Comment
Question by:parpaitas
1 Comment
 
LVL 3

Accepted Solution

by:
mykde earned 2000 total points
ID: 36582970
Try this:
echo '<a href="http://www.textlink.com/">'.$theData.'</a>';

Open in new window

0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question