0

When I click on the button it is not working but when i refresh the page the mails are going.Please suggest me how to solve this problem.

     <button type="submit" title="<?php echo $this->__('Email Me') ?>"  class="button"><span><span><?php echo $this->__('Email Me')?></span></span></button>

<?php
$email=$_POST['email'];
$name=$_POST['name'];
$to=$email;
$subject= "New Application";
$message= "Name: ".$name;
$headers= "From: admin@labwise.in" . "\r\n" .
mail($to, $subject, $message, $headers);
?> 

Edited by Ravinder_3

4
Contributors
6
Replies
32
Views
2 Years
Discussion Span
Last Post by broj1
1

Also, the method name in $this->__('Email Me') does not seem to be valid or is my knowledge of PHP a bit shaky?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.