Jump to content

to concatenate strings in php


kadamsurekha

Recommended Posts

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

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

 

 

Archived

This topic is now archived and is closed to further replies.

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