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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.