Jump to content

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>";

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.