Solved

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

Posted on 2011-09-22
1
414 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

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

Open in new window

0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why is my implode function empty 8 42
Editing .asp website 5 30
Sticking text to shapes in Raphael.js 6 40
php time 12 23
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

737 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