Mailform

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

    Mailform

    Hi,

    i am a newbie with php .

    Why does the following not work on lycos free account???????

    <?PHP
    $to = $_POST["to"];
    $from = $_POST["from"];
    $mes = $_POST["mes"];
    mail($to, $from, $mes);
    ?>

    Up this is a html form with fields to from and mes.

    what is the simplest mailform.

    FiremanSAM


  • RG

    #2
    Re: Mailform


    "FiremanSAM " <firemansam@co. uk> wrote in message
    news:6hm7b.3066 $P51.5223@amstw ist00...[color=blue]
    > Hi,
    >
    > i am a newbie with php .
    >
    > Why does the following not work on lycos free account???????
    >
    > <?PHP
    > $to = $_POST["to"];
    > $from = $_POST["from"];
    > $mes = $_POST["mes"];
    > mail($to, $from, $mes);
    > ?>
    >
    > Up this is a html form with fields to from and mes.
    >
    > what is the simplest mailform.
    >
    > FiremanSAM
    >[/color]

    Probably because they don't want people abusing their mailservers.
    If you get proper hosting, your script will work.

    RG

    [color=blue]
    >[/color]


    Comment

    • ofor

      #3
      Re: Mailform


      "FiremanSAM " <firemansam@co. uk> skrev i meddelandet
      news:6hm7b.3066 $P51.5223@amstw ist00...[color=blue]
      > Hi,
      >
      > i am a newbie with php .
      >
      > Why does the following not work on lycos free account???????
      >
      > <?PHP
      > $to = $_POST["to"];
      > $from = $_POST["from"];
      > $mes = $_POST["mes"];
      > mail($to, $from, $mes);
      > ?>
      >
      > Up this is a html form with fields to from and mes.
      >
      > what is the simplest mailform.
      >
      > FiremanSAM
      >[/color]
      If you run phpinfo() you will see a lot of things are disabled

      ofor


      Comment

      Working...