<?php
$campaign = $_GET['campaign'];
$straightlink = "https://link1";
$sublink = "https://link2";
if ($campaign = "1234abc"){
$link = $sublink;}
else { $link = $straightlink;}
?>
I'm testing this code with echoecho $link
and the output is always link2
I need link2 to echo when campaign matches the string and link1 to appear in any other situation.