0

I am trying to get a $string to dynamically update an href link on my PHP page.

Code:

$_SESSION['success_msg'] = 'Users have been successfully unarchived and moved to <a href="$string1">$string1</a>';
user3893380
  • 33
  • 1
  • 1
  • 6
  • $_SESSION['success_msg'] = 'Users have been successfully unarchived and moved to $string1'; here is full code – user3893380 Oct 17 '15 at 20:02
  • Welcome to Stack Overflow, you might want to take a quick tour here: [tour] and also read [ask] when you ask a question. – Rizier123 Oct 17 '15 at 20:05
  • when you use single quote the string is not parsed, you need to split string or use double quotes with escaping it. Also you can use sprintf() function – Robert Oct 17 '15 at 20:07

0 Answers0