Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7521545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:15:33+00:00 2026-05-30T02:15:33+00:00

I have this form set up on my website: http://cssrevolt.com/upload/files/protoform/ It’s all customized and

  • 0

I have this form set up on my website: http://cssrevolt.com/upload/files/protoform/

It’s all customized and working just as the stand alone demo above.

The protoform came with a send.php file that consists of the PHP below:

<?php
    echo "<div id=\"response\">";


  $name            = $_POST['name'];
  $email           = $_POST['email'];
  $telephone       = $_POST['telephone'];
  $preference      = $_POST['preference'];
  $message         = $_POST['message'];

  if ( ($name=='') && ($email=='') && ($telephone=='') && ($message=='')) { 

        echo "<p>Please fill all the required fields<span>*</span></em></p>";

  }
  else {

        echo "<p>Submitting ok, server response:</p>";
        echo "<ul>";
        echo "<li>Name: ".$name."</li>";
        echo "<li>E-mail: ".$email."</li>";
        echo "<li>Telephone: ".$telephone."</li>";
        echo "<li>Preference: ".$preference."</li>";
        echo "<li>Message:".$message."</li>";
        echo "</ul>";
  }  


  echo "</div>";
?>      

I’m still considerably novice with PHP, but from what it looks like I should just have to insert some code that will spit the data at a defined email address, right?

!UPDATED: Code attempt below and still can’t get form data to send to my email. (Have replaced youremail with actual)

<?php
    echo "<div id=\"response\">";


  $name            = $_POST['name'];
  $email           = $_POST['email'];
  $telephone       = $_POST['telephone'];
  $preference      = $_POST['preference'];
  $message         = $_POST['message'];

  if ( ($name=='') && ($email=='') && ($telephone=='') && ($message=='')) { 

        echo "<p>Please fill all the required fields<span>*</span></em></p>";

  }
  else {

        echo "<p>Submitting ok, server response:</p>";
        echo "<ul>";
        echo "<li>Name: ".$name."</li>";
        echo "<li>E-mail: ".$email."</li>";
        echo "<li>Telephone: ".$telephone."</li>";
        echo "<li>Preference: ".$preference."</li>";
        echo "<li>Message:".$message."</li>";
        echo "</ul>";


        // Body of message
        $message = "Submitting ok, server response: \n
        Name: $name \n
        E-mail: $email \n
        Telephone:  $telephone \n
        Preference: $preference \n
        Message: $message \n";
        //Recipient
        $to = "your@email.dom";
        //Subject of email
        $subject = "Message from $name";
        // http://php.net/manual/en/function.mail.php
        mail($to, $subject, $message);

  }  


  echo "</div>";
?> 

Derivation of this question: https://stackoverflow.com/questions/9253461/using-protoform-where-is-data-via-ajax-at

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:15:34+00:00Added an answer on May 30, 2026 at 2:15 am
    <?php
        echo "<div id=\"response\">";
    
    
      $name            = $_POST['name'];
      $email           = $_POST['email'];
      $telephone       = $_POST['telephone'];
      $preference      = $_POST['preference'];
      $message         = $_POST['message'];
    
      if ( ($name=='') && ($email=='') && ($telephone=='') && ($message=='')) { 
    
            echo "<p>Please fill all the required fields<span>*</span></em></p>";
    
      }
      else {
    
            echo "<p>Submitting ok, server response:</p>";
            echo "<ul>";
            echo "<li>Name: ".$name."</li>";
            echo "<li>E-mail: ".$email."</li>";
            echo "<li>Telephone: ".$telephone."</li>";
            echo "<li>Preference: ".$preference."</li>";
            echo "<li>Message:".$message."</li>";
            echo "</ul>";
    
    
            // Body of message
            $message = "Submitting ok, server response: \n
            Name: $name \n
            E-mail: $email \n
            Telephone:  $telephone \n
            Preference: $preference \n
            Message: $message \n";
            //Recipient
            $to = "your@email.dom";
            //Subject of email
            $subject = "Message from $name";
            // http://php.net/manual/en/function.mail.php
            mail($to, $subject, $message);
    
      }  
    
    
      echo "</div>";
    ?> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so I have this form that is set to preload a DB record
In my c# application i have this small form which is used to set
I have a ListView control on my form set up like this in details
I have set the form decorators in this way: <?php $this->setElementDecorators(array( 'Label', array(array('labelTd' =>
I have attempted to use this CSS to set the width of my form
I have the following html piece from this website: http://catalogue.bl.uk/F/NTBK6NCP3LK56BPNU2NJ4FF4MBLIRUNMFX66JLHKBDV1RNCAAB-02920?func=short-0&set_number=151530 <form name=XXX000001 method=GET><input type=checkbox
I have this database scheme: http://i54.tinypic.com/k9hzc.png As you can see, I have three columns
I have this form in my view: <!-- Bug (extra 'i') right here-----------v -->
I have this form: <form name=customize> Only show results within <select name=distance id=slct_distance> <option>25</option>
I have this form. Basically what I want is to send a auto-response with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.