Link to home
Start Free TrialLog in
Avatar of awarraic
awarraicFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Rok-Kralj
Rok-Kralj
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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>';
Avatar of awarraic

ASKER

Thanks much, especially, for soooo prompt respond. :)