Jump to content

Viral PHP URL


isleofman

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/240524-viral-php-url/
Share on other sites

<?= 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

Link to comment
https://forums.phpfreaks.com/topic/240524-viral-php-url/#findComment-1235446
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.