summaryrefslogtreecommitdiff
path: root/comment.php
diff options
context:
space:
mode:
authorsanmugam2013-08-21 10:59:48 +0530
committersanmugam2013-08-21 10:59:48 +0530
commita3e435a558392908a3c91f796042668fa10bb33f (patch)
tree9665b49f0b4bb634f1a9b50e96de64d7f2bb7293 /comment.php
parent935f52cea62dabb46b6b8fc86446231316fccfdd (diff)
downloadscilab_cloud_interface-a3e435a558392908a3c91f796042668fa10bb33f.tar.gz
scilab_cloud_interface-a3e435a558392908a3c91f796042668fa10bb33f.tar.bz2
scilab_cloud_interface-a3e435a558392908a3c91f796042668fa10bb33f.zip
face box include, book, example, chapter id stored
Diffstat (limited to 'comment.php')
-rwxr-xr-xcomment.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/comment.php b/comment.php
new file mode 100755
index 0000000..9758339
--- /dev/null
+++ b/comment.php
@@ -0,0 +1,24 @@
+ <html>
+ <head>
+ <title>Home | Scilab cloud</title>
+ <script src="jquery.js" type="text/javascript"></script>
+
+
+ </head>
+ <body>
+ <?php
+ require_once('db-connect.php');
+ //var_dump($_POST);
+ //die;
+ 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>";
+ }else{
+ echo "<p>Sorry for the inconvience, please try again</p>";
+ }
+ }else{ ?>
+ </body>
+</html>
+<?php } ?>