Concatenate in php

How would i concatenate this please help**//this partt**

<?php   $id = getfield('id'); ?>

<html>
    **<?php <a class="profile" href="profile.php?='$id' "><echo ucfirst ($firstname);</a> ?>//This Part**
</html>
1 Like

Sorry for no code tags but here goes.

<a href="profile.php?=<?php echo $id.' ">'.ucfirst ($firstname);?></a>

really appreciate your answer but can you please write down the full thing

What don’t you understand.
I am using my phone which means it’s annoying enough to type code.

Otherwis use php online to echo the whole link.
Do echo with single quotes.

My bad i didn’t see your second comment
Thanks it worked like a charm

Awesome good to know.
If you need more help just post a message or pm me.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.