Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalbos kas padės +11

Parašė Stifleris.· 2010 Spa. 12 11:10:36
#5

edis2 parašė:

<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
  {
  //send email
  $email = $_REQUEST['email'] ;
  $subject = $_REQUEST['subject'] ;
  $message = "IPAS: ".$_REQUEST['ip']."  PORTAS:".$_REQUEST['port']." TIPAS:".$_REQUEST['tipas']." ";
  mail( "someone@example.com", "Subject: $subject",
  $message, "From: $email" );
  echo "Thank you for using our mail form";
  }
else
//if "email" is not filled out, display the form
  {
  echo "<form method='post' action='mailform.php'>
  Email: <input name='email' type='text' /><br />
  Subject: <input name='subject' type='text' /><br />
    ip: <input name='ip' type='text' /><br />
 port: <input name='port' type='text' /><br />
tipas:  <input name='tipas' type='text' /><br />
  <input type='submit' />
  </form>";
  }
?>


Kažko panašaus reikia?

Jo kiek supratau reikia mailform.php jai gali numesk tuos kodus, nes jau susitvarkiau beveik. Dekui.