summaryrefslogtreecommitdiff
path: root/comment.php
diff options
context:
space:
mode:
authorroot2014-06-19 12:21:24 +0200
committerroot2014-06-19 12:21:24 +0200
commit1b54f67fb2bc065c9e9dbb66d1e00e407d30456d (patch)
tree8f873c8bb00e6cc520cd07c943eab5680f08d747 /comment.php
parenta3e435a558392908a3c91f796042668fa10bb33f (diff)
downloadscilab_cloud_interface-1b54f67fb2bc065c9e9dbb66d1e00e407d30456d.tar.gz
scilab_cloud_interface-1b54f67fb2bc065c9e9dbb66d1e00e407d30456d.tar.bz2
scilab_cloud_interface-1b54f67fb2bc065c9e9dbb66d1e00e407d30456d.zip
started propoer github maintainence
Diffstat (limited to 'comment.php')
-rwxr-xr-xcomment.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/comment.php b/comment.php
index 9758339..3c4845f 100755
--- a/comment.php
+++ b/comment.php
@@ -13,8 +13,25 @@
if(isset($_POST['type']) && isset($_POST['comment'])){
$query = "insert into scilab_cloud_comment (type, comment, email,category,books,chapter,example) values(".$_POST['type'].", '".$_POST['comment']."', '".$_POST['email']."', '".$_POST['category']."', '".$_POST['books']."', '".$_POST['chapter']."', '".$_POST['example']."')";
if(mysql_query($query)){
-
+
echo "<p>Thank you for your valuable feedback.</p>";
+
+ $to = "rush2jrp@gmail.com, mukulrkulkarni@gmail.com, lavitha89@gmail.com, kannan@iitb.ac.in, kiran@fossee.in, manasdas17@gmail.com";
+ $subject = "New Cloud Comment";
+ $message = "
+ A new comment has been posted. <br>
+ Type: {$_POST['type']} <br>
+ Comment: {$_POST['comment']} <br>
+ Link: http://scilab.in/cloud_comments
+ ";
+ $from = "textbook@scilab.in";
+
+ $headers = "From: " . $from . "\r\n";
+ $headers .= "MIME-Version: 1.0\r\n";
+ $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
+ mail($to,$subject,$message,$headers);
+
+
}else{
echo "<p>Sorry for the inconvience, please try again</p>";
}