vbscript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Desmond

    vbscript

    can someone please tell me what the PHP equivelent to this
    vbsript is

    Response.Redire ct "acknowledge.ht ml

    Thanks.

  • Chris Hope

    #2
    Re: vbscript

    Desmond wrote:
    [color=blue]
    > can someone please tell me what the PHP equivelent to this
    > vbsript is
    >
    > Response.Redire ct "acknowledge.ht ml[/color]

    header('Locatio n: acknowledge.htm l');
    exit;

    --
    Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

    Comment

    • Jasper Bryant-Greene

      #3
      Re: vbscript

      <?php
      header('Locatio n: http://your.server.com/path/acknowledge.htm l');
      ?>

      I've put the absolute URL because not doing so violates the HTTP
      standard.

      Comment

      • Desmond

        #4
        Re: vbscript

        Thanks it is redirecting now but I am not getting my emails sent to me.
        it's only 10 lines
        of PHP which I am new to.

        the site is http://www.des-otoole.co.uk/Email-3.html and the code in
        php is

        <?php
        $to = $_POST["to"];
        $from = $_POST["from"];
        $sss = $_POST["subject"];
        $mmm = $_POST["message"];
        $headers = "From: $from\r\n";
        $success = mail($to, $sss, $mmm, $headers);
        header('Locatio n: acknowledge.htm l');
        exit;
        ?>

        any sugestions.

        Desmond

        Comment

        • Philip Ronan

          #5
          Re: vbscript

          "Desmond" wrote:
          [color=blue]
          > Thanks it is redirecting now but I am not getting my emails sent to me.
          > it's only 10 lines
          > of PHP which I am new to.
          >
          > the site is http://www.des-otoole.co.uk/Email-3.html and the code in
          > php is
          >
          > <?php
          > $to = $_POST["to"];
          > $from = $_POST["from"];
          > $sss = $_POST["subject"];
          > $mmm = $_POST["message"];
          > $headers = "From: $from\r\n";
          > $success = mail($to, $sss, $mmm, $headers);
          > header('Locatio n: acknowledge.htm l');
          > exit;
          > ?>
          >
          > any sugestions.
          >
          > Desmond
          >[/color]

          /bangs head on desk/

          Congratulations , you've just created your first spam engine. Now just sit
          back and watch your site's bandwidth go through the roof as spammers all
          over the world use your handy script to tell everyone about their viagra
          pills and penis extension kits.

          Of course, your web hosting company will probably get a bit annoyed after a
          while. I'd say you have about 48 hours left before they pull the plug on
          your website.

          --
          phil [dot] ronan @ virgin [dot] net



          Comment

          • Ken Robinson

            #6
            Re: vbscript

            Desmond wrote:[color=blue]
            > Thanks it is redirecting now but I am not getting my emails sent to me.
            > it's only 10 lines
            > of PHP which I am new to.
            >
            > the site is http://www.des-otoole.co.uk/Email-3.html and the code in
            > php is
            >
            > <?php
            > $to = $_POST["to"];
            > $from = $_POST["from"];
            > $sss = $_POST["subject"];
            > $mmm = $_POST["message"];
            > $headers = "From: $from\r\n";
            > $success = mail($to, $sss, $mmm, $headers);
            > header('Locatio n: acknowledge.htm l');
            > exit;
            > ?>
            >
            > any sugestions.[/color]

            Since you're on AOL, AOL maybe requiring that the "From" line and where
            the mail looks like it's coming from have the same domain. Try adding
            the 5th parameter to the mail() function in the form:

            $success = mail($to,$sss,$ mmm,$headers,'-f '.$_POST['from'];

            You should check that the mail() function actually succeeded by
            checking the return code:

            if ($success) header (...)
            else echo "Something is wrong with mail";

            Also, if you are always sending this email to yourself, you don't have
            to include the "To" address in your form. Just hardcode it in your PHP
            code.

            Ken

            Comment

            • Ken Robinson

              #7
              Re: vbscript



              Philip Ronan wrote:[color=blue]
              > /bangs head on desk/
              >
              > Congratulations , you've just created your first spam engine. Now just sit
              > back and watch your site's bandwidth go through the roof as spammers all
              > over the world use your handy script to tell everyone about their viagra
              > pills and penis extension kits.
              >
              > Of course, your web hosting company will probably get a bit annoyed after a
              > while. I'd say you have about 48 hours left before they pull the plug on
              > your website.[/color]

              Actually, if you read the HTML code, you will see that he's hardcoded
              the "To" address in the form, so everything will eventually go to him,
              once the problems are solved.

              Ken

              Comment

              • Daniel Tryba

                #8
                Re: vbscript

                Ken Robinson <kenrbnsn@rbnsn .com> wrote:[color=blue]
                > Actually, if you read the HTML code, you will see that he's hardcoded
                > the "To" address in the form, so everything will eventually go to him,
                > once the problems are solved.[/color]

                Sure, you can always trust spammers to only use the form that was
                originally indended to post to the script...

                Comment

                • Ken Robinson

                  #9
                  Re: vbscript



                  Daniel Tryba wrote:[color=blue]
                  > Ken Robinson <kenrbnsn@rbnsn .com> wrote:[color=green]
                  > > Actually, if you read the HTML code, you will see that he's hardcoded
                  > > the "To" address in the form, so everything will eventually go to him,
                  > > once the problems are solved.[/color]
                  >
                  > Sure, you can always trust spammers to only use the form that was
                  > originally indended to post to the script...[/color]

                  That's one of the reasons I suggested that he hardcode the "To:"
                  address in his PHP code.

                  Ken

                  Comment

                  Working...