Textarea content save in a variable

EITIIAC

New Member
I want to save the content i introduce in a textarea. After that i want to send this content to a link to share on facebook. \[code\]<?php if(isset($_POST['submit'])){$comments = strip_tags($_POST['comments']);$data = http://stackoverflow.com/questions/15900735/strip_tags($_POST['comments']);} else{$data ='';}?>\[/code\]This is how I saved the content but can't call it. I tried this method:\[code\]<a id= "upl1" href="https://www.facebook.com/sharer/sharer.php?t=<?php echo $data;?>" target="_blank"></a>\[/code\]
 
Top