I would like to do the following in my webpage:
Now I can start the whatapp conversation but no text! Please help.
here with my code:
$txt = " happy ";
$link = "<meta http-equiv=REFRESH CONTENT=1;url='https://wa.me/85265648596?text=$txt'>";
$sql = "insert into Enrol (`Name`, `Tel`, `Year`, `Enquiry`) values ('$Name', '$Tel', '$Year', '$Enquiry')";
if ($conn->query($sql) === TRUE)
{
echo $txt;
echo $link;
}
Notice how it already works, if your text does not contain a space at the beginning …?
You need to properly URL-encode the value, if it contains “special” characters.
$link = "<meta http-equiv=REFRESH CONTENT=1;url='https://wa.me/85265648596?text=" .
urlencode($txt) . "'>";