Jump to content

[SOLVED] href html code in echo problem


Foser

Recommended Posts

I have a little problem. Im trying to add a bit of html in my code but when i do I get a

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

 

echo "<a href="index.php">Click Here To Go To The Login Page </a>";

 

I think it's because I have index.php which is in blue function color in dreamweaver. I forgot the command that will block it and make it as normal to no make it think it's a php command.

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/56667-solved-href-html-code-in-echo-problem/
Share on other sites

echo "<a href='index.php'>Click Here To Go To The Login Page </a>";

 

his 2 ways simple shows that you have to enclose the tags the right way.

 

here your code is leaving index.php exposed so it will read until  "<a href="

 

echo "<a href="index.php">Click Here To Go To The Login Page </a>";

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.