Preserve link in php form -


i've created form sends 2 email: 1. me 2. confirmation email user link other information

<?php $to ='email@email.com'; $subject ="this subject"; $header="from: $firstname $lastname <$email>"; $message = "name: $firstname $lastname \n\nphone: $phone \n\nemail: $email"; $send_contact=mail($to,$subject,$message,$header);  if ( $send_contact ) { echo "super fun message"; } else { echo "error"; }  $to1 = $email; $subject1 ="this email subject"; $header1="from: email@email.com <email@email.com>"; $message1 = "thanks check out <a href="http://link.com" title="">link</a>."; $send_contact1=mail($to1,$subject1,$message1,$header1); 

?>

problem, think, syntax link in $message1 isn't correct... can't right.

thanks help!

it's because quotation mark before link match 1 @ start on $message1, change them single quotation marks , should fine.

$message1 = "thanks check out <a href='www.link.com' title=''>link</a>." 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -