kadamsurekha Posted March 14, 2007 Share Posted March 14, 2007 hello every1! i want the string to appear as below: welcome!u r here.plse click on the link below activate the form thank you. so the link(activate the form) should open the following url http://www.mstalk.fd.com/verify.php?id=<? echo $myguid; ?>&status=<? echo "active";?> i have written the php file as follows: <?php $msg="welcome!u r here.plse click on the link below"; $msg=$msg.<a href="http://www.mstalk.fd.com/verify.php?id=<? echo $myguid; ?>&status=<? echo "active"; ?>activate the form</a>; echo "$msg"; ?> can any1 help???????????? thx n regards Link to comment https://forums.phpfreaks.com/topic/42620-to-concatenate-strings-in-php/ Share on other sites More sharing options...
papaface Posted March 14, 2007 Share Posted March 14, 2007 Do this: <?php $msg = "welcome!u r here.plse click on the link below"; echo $msg . '<br><a href="http://www.mstalk.fd.com/verify.php?id='.$myguid.'&&status=active">activate the form</a>'; ?> Link to comment https://forums.phpfreaks.com/topic/42620-to-concatenate-strings-in-php/#findComment-206859 Share on other sites More sharing options...
tenfold Posted March 14, 2007 Share Posted March 14, 2007 yea the part your adding on isn't in quotes Link to comment https://forums.phpfreaks.com/topic/42620-to-concatenate-strings-in-php/#findComment-206869 Share on other sites More sharing options...
kadamsurekha Posted March 14, 2007 Author Share Posted March 14, 2007 let me tell u how it is:- i hav the code as <? $msg="welcome!u r here".echo "<a href='a.php'>click me!</a>"; echo "$msg"; ?> so i want the output as:- welcome!u r here click me! where "click me!" is the link to a.php page plse can u tell me how it is???????? thx n regards Link to comment https://forums.phpfreaks.com/topic/42620-to-concatenate-strings-in-php/#findComment-206890 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.