Re: [PHP-DB] Need Help with PHP Mails

Guru™ <[email protected]>
Newsgroups gmane.comp.php.windows,gmane.comp.php.database
Message-ID <[email protected]>
Hi Will,

Below is my final PHP code, and its working now. However this is just a
small piece of the form that I have created. In my original form I have more
then 50 fields and variables. Now I am not sure how to expand this code
having all 50 fields. Can the mail function will take that much fields?

<?php

if(isset($_POST['submit'])) // submit button clicked
   {

$party_name = isset($_POST['party_name'])? $_POST['party_name']:null;
$contact_no = isset($_POST['contact_no'])? $_POST['contact_no']:null;
$pemail = isset($_POST['pemail'])? $_POST['pemail']:null;


$mymail = "[email protected]";


 if(mail($mymail, "New contact info submitted!","Party: {$party_name}
Contact:  {$contact_no}    Email: {$pemail}"))
      {


 echo 'Mail sent!<br />';
      }
  }





?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.