isleofman Posted June 27, 2011 Share Posted June 27, 2011 I'm trying to replicate this tutorial: http://www.campaignmonitor.com/blog/pos … ribe-form/ I am unable to get the confirmation page to display the unique URL, as defined in the PHP $_SESSION['id'] The ref also doesn't appear for the successful subscriber in the campaign manager. All that is shown is <?=$_SESSION['name']?> It might be that I haven't set up PHP correctly or I am missing something in the PHP session before the head tag. Could somebody please tell me why I'm being such a fool? Many thanks! Quote Link to comment https://forums.phpfreaks.com/topic/240524-viral-php-url/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 27, 2011 Share Posted June 27, 2011 <?= is the lazy-way short open tag and is not enabled on all servers, resulting in code that is not portable between servers. It is really a time-wasting shame that anyone posting code, tutorials,..., that they expect others to use, would waste peoples time by using a feature of a language that can be turned off, when there is a way of writting code that would work on all server configurations. <?= needs to be replaced by <?php echo (you need a space after the echo.) <? (by itself, no = ) needs to be replaced by <?php Quote Link to comment https://forums.phpfreaks.com/topic/240524-viral-php-url/#findComment-1235446 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.