Title: Wants PHP script for subscription
Last modified: August 21, 2016

---

# Wants PHP script for subscription

 *  [hitu165](https://wordpress.org/support/users/hitu165/)
 * (@hitu165)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wants-php-script-for-subscription/)
 * Hello Everyone
    I purchased Eve – Responsive Underconstruction Theme from themeforest.
   But they don’t provide php script for subscription.when i contact them on theme
   forum they say that is not our work.However they told me,i have to create PHP
   script in process.php file. As,i am new to php i don’t know what to change in
   process.php file so that mail can receive when anybody subscribe. This is the
   code in process.php : <?php
 * //Retrieve form data.
    //GET – user submitted data using AJAX //POST – in case
   user does not support javascript, we’ll use POST instead $email = ($_GET[’email’])?
   $_GET[’email’] : $_POST[’email’];
 * //flag to indicate which method it uses. If POST set it to 1
    if ($_POST) $post
   =1;
 * //if the errors array is empty, send the mail / no errors found
    if (!$errors){
 *  //if POST was used, display the message straight away
    if ($_POST) { echo ‘Thank
   you! We have received your message.’;
 *  //This one for ajax
    //1 means success, 0 means failed } else { echo ‘1’; }
 * } else {
    //display the errors message for ($i=0; $i<count($errors); $i++) echo
   $errors[$i] . ‘‘; echo ‘[Back](https://wordpress.org/support/topic/wants-php-script-for-subscription/index.html?output_format=md)‘;
   exit; }
 * ?>

The topic ‘Wants PHP script for subscription’ is closed to new replies.

## Tags

 * [subscription](https://wordpress.org/support/topic-tag/subscription/)

 * 0 replies
 * 1 participant
 * Last reply from: [hitu165](https://wordpress.org/support/users/hitu165/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/wants-php-script-for-subscription/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
