PHP code help

I have this piece of code that I am trying to work, getting HTML validation error.
Print "<td><a href=/content/mark.php?vendor_id=$vendor_id&amp;mark_id=".$_SESSION['mark_id'].">"; echo $mark_name; "</a></td>";

The error that I am getting is on href, that I should have " around  /content/mark.php?..., after href=
I tried to concatinate but not getting the logic how to make that work.

Thanks. much.
awarraicAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Rok-KraljConnect With a Mentor Commented:
echo '<td><a href=/content/mark.php?vendor_id='.$vendor_id.'&amp;mark_id='.$_SESSION['mark_id'].'>'.$mark_name.'</a></td>';
0
 
Rok-KraljCommented:
And more correct (W3C valid):

echo '<td><a href="/content/mark.php?vendor_id='.$vendor_id.'&amp;mark_id='.$_SESSION['mark_id'].'">'.$mark_name.'</a></td>';
0
 
awarraicAuthor Commented:
Thanks much, especially, for soooo prompt respond. :)
0
All Courses

From novice to tech pro — start learning today.