Php scripts are not working. RRS feed

  • Question

  • Dear sir.

    I have a html page, a textbox(Required field) and a button and a php script associated with the button for sending an email

    My problem is that script is not working in azure , but its working fine in other hosting area. 
    Please provide me solution.

    Thank you.


    Subscribe us</p>
              <form id="subscribe" name="subscribe" action="subscribe.php" method="post"
     class="validate" target="_blank">
                <div class="input-append">
                  <input type="email" id="email" name="email" placeholder="Your Email" />
                  <button class="subscribe-button btn" type="submit" onclick="return


    /* subject and email varialbles*/
    $emailSbuject = 'Subscribe';
    $webMaster = '';
    $emailSbuject2 = 'Thank you';
    $client = ' $emailFeild\r\n';
    /*gathering data variables*/
    $emailFeild = $_POST['email'];
    // admin message body
    $body= <<<EOD
    Our new subscriber is $emailFeild
    Email: $emailFeild 
    $textMessage = <<<EOD
        Thank you for subscribing us. Somebody will get back to you as soon as possible.
        $headers = "From: $emailFeild\r\n";
        $header = "From: $";
        $success = mail($webMaster,$emailSbuject,$body,$headers);
        $success1 = @mail($emailFeild,$emailSbuject2,$textMessage,$header);
        $theResults = <<<EOD
    echo  "$theResults";
    • Edited by Vivek Saha Thursday, November 27, 2014 10:23 AM
    Thursday, November 27, 2014 9:57 AM

All replies

  • Wrong forum. This forum is for help with Expression Web, not Azure or PHP.

    A horse walks into a bar. The bartender asks "Why the long face?" "Because I was born into servitude and when I die my hooves will be used to make glue." It was at this point that the bartender realized he would not be getting a tip.

    Thursday, November 27, 2014 2:47 PM
  • Configuring PHP on Azure is not a topic for this forum. Google "run PHP on Azure" and you find links for Azure instructions.
    Saturday, November 29, 2014 7:42 AM
  • Thank you sir :)
    Tuesday, December 2, 2014 4:54 AM