Solved

php a varianble no display

Posted on 2013-06-08
3
284 Views
Last Modified: 2013-06-08
<?php if ($mode == "updating") {echo <a href="login.php?id={$plugin_id}">click here</a> ?>

come up result => abc.com/login.php?id=

but work when <?php echo $plugin_id; ?>

this not working when variable inside hyperlink. expert pls help
0
Comment
Question by:john80988
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39232474
You need quotes around the string literals you are echoing:

<?php if ($mode == "updating") { echo "<a href=\"login.php?id={$plugin_id}\">click here</a>" } ?>

Open in new window

0
 

Author Comment

by:john80988
ID: 39232490
Parse error: syntax error, unexpected '<'
0
 

Author Closing Comment

by:john80988
ID: 39232495
yes it work, tq
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now