Scrollup

[insert_php]
if(!session_id())
session_start();
$additionalMessage = ”;
if((isset($_SESSION[‘whatsapp’])) && ($_SESSION[‘whatsapp’] == 1)) {
$additionalMessage .= ‘

  • You have signed up for whatsapp messaging
  • ‘;
    $additionalMessage .= ‘

  • You can signup for telegram. Download Telegram | Subscribe To our Telegram Channel
  • ‘;
    }
    if((isset($_SESSION[‘volunteer’])) && ($_SESSION[‘volunteer’] == 1))
    $additionalMessage .= ‘

  • You have signed up for our Door-2-Door volunteering team
  • ‘;
    if((isset($_SESSION[‘social’])) && ($_SESSION[‘social’] == 1))
    $additionalMessage .= ‘

  • You have signed up for our Social Media volunteers team
  • ‘;
    if((isset($_SESSION[‘fundraising’])) && ($_SESSION[‘fundraising’] == 1))
    $additionalMessage .= ‘

  • You have signed up for our Fundraising volunteers team
  • ‘;

    if(isset($_SESSION[‘name’])) {
    $email = $_SESSION[’email’];
    $name = $_SESSION[‘name’];
    echo “

    Thank you $name for signing up!

    We have added your email $email to our volunteer mailing list. You will here from the team soon. You can unsubscribe any time by clicking the Unsubscribe link in the emails.

    “;
    if($additionalMessage != ”) {
    echo “

      $additionalMessage

    “;
    echo “

    Did you know about the free health facilities provided by the AAP Government in Delhi? Click here to learn more


    “;
    } else {
    echo “


    ” . file_get_contents(‘/var/www/html/fbapp/postThankyouV2.html’);
    }
    } else
    echo “

    Oops! You need to sign in with facebook to subscribe.

    Please click here to take you back to Facebook Signup


    “;
    [/insert_php]