coder500 Posted August 22, 2008 Share Posted August 22, 2008 I am capturing username and email id. I want to verify client's email id before sending the report. So before sending the report I like to send a verification link to the mail id provided. I am not clear how I can achieve it. I tried $name=$_POST['name']; $body = "Click On this link (http://www.worth2read.org/test/PhpMaile ... .php?$name to verify your mail Id"; But the mail I am getting is as follows : Click On this link (http://www.worth2read.org/test/PhpMaile ... onfirm.php? to verify your mail Id . That means the captured name is not passed. Any help? Link to comment https://forums.phpfreaks.com/topic/120817-solved-send-a-confirmation-link-to-the-mail-id-provided/ Share on other sites More sharing options...
Zane Posted August 22, 2008 Share Posted August 22, 2008 Concatenation Link to comment https://forums.phpfreaks.com/topic/120817-solved-send-a-confirmation-link-to-the-mail-id-provided/#findComment-622770 Share on other sites More sharing options...
marcus Posted August 22, 2008 Share Posted August 22, 2008 I don't see why he would necessarily have to use concatenation in this. Are you sure the input name for the "name" variable is name? Link to comment https://forums.phpfreaks.com/topic/120817-solved-send-a-confirmation-link-to-the-mail-id-provided/#findComment-622772 Share on other sites More sharing options...
Zane Posted August 22, 2008 Share Posted August 22, 2008 I'm not really sure either, but it's always good practice to use it. You can never go wrong with it. Most of the time double quotes will let you flat out use variables inside them without accommodations like curly braces and what not, but still. No matter what programming language you're using, if you concatenate from the beginning you won't have any problems And it should throw a T_VARIABLE error when he concatenates....if you're right mgall Link to comment https://forums.phpfreaks.com/topic/120817-solved-send-a-confirmation-link-to-the-mail-id-provided/#findComment-622774 Share on other sites More sharing options...
coder500 Posted August 22, 2008 Author Share Posted August 22, 2008 Thanks! Used concatenation and it worked. Link to comment https://forums.phpfreaks.com/topic/120817-solved-send-a-confirmation-link-to-the-mail-id-provided/#findComment-622787 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.