{"action":"created","issue":{"url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form/issues/3","repository_url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form","labels_url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form/issues/3/comments","events_url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form/issues/3/events","html_url":"https://github.com/kocakmhmt/SMTP-PHP-Contact-Form/issues/3","id":138506584,"number":3,"title":"Not making the form disappear or saying message sent","user":{"login":"emmamargaret","id":17647737,"avatar_url":"https://avatars.githubusercontent.com/u/17647737?v=3","gravatar_id":"","url":"https://api.github.com/users/emmamargaret","html_url":"https://github.com/emmamargaret","followers_url":"https://api.github.com/users/emmamargaret/followers","following_url":"https://api.github.com/users/emmamargaret/following{/other_user}","gists_url":"https://api.github.com/users/emmamargaret/gists{/gist_id}","starred_url":"https://api.github.com/users/emmamargaret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmamargaret/subscriptions","organizations_url":"https://api.github.com/users/emmamargaret/orgs","repos_url":"https://api.github.com/users/emmamargaret/repos","events_url":"https://api.github.com/users/emmamargaret/events{/privacy}","received_events_url":"https://api.github.com/users/emmamargaret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-04T15:45:48Z","updated_at":"2016-03-05T10:27:34Z","closed_at":null,"body":"Hello Mehmet,\r\nFirstly thank you so much for making this available - I searched for ages for a form like this which I was able to set up - being a beginner at this stuff.\r\nI have just installed the form on a test site, on the Contact tab - http://emmagallagher.co.uk/pathfinder/contacttest.php It all seem sto be working I am getting most of the test emails. Strangely not all.\r\nBut my main ifficulty is that when I press send the form does not disappear and there is no - Thanks for sending your message. I had too edit the form as there were too many boxes to fill.\r\nAny thought gratefully received and many thanks in advance\r\nAll the best,\r\nEmma\r\n\r\nHere is the code\r\n\r\nHTML:<div id=\"contactcontainer\">\r\n\t<form class=\"form\" id=\"contact_form\" name=\"contact_form\" method=\"post\" action=\"javascript:void(0);\">\r\n\t<p class=\"name\">\r\n        <label for=\"name\">Name<font color=\"red\">*</font></label>\r\n\t<input type=\"text\" name=\"name\" id=\"name\" placeholder=\"Your Name*\"  required/>\r\n\t</p>\r\n\t<p class=\"email\">\r\n        <label for=\"email\">Email<font color=\"red\">*</font></label>\r\n\t<input type=\"text\" name=\"email\" id=\"email\" placeholder=\"mail@example.com*\" required />\r\n\t</p>\r\n\t</p>\r\n         <img src=\"SMTP-PHP-Contact-Form-master/inc/captcha.php\" />\r\n\t<label for=\"guvenlikKodu\"><font color=\"red\">*</font></label>\r\n        <input type=\"text\" name=\"guvenlikKodu\" id=\"guvenlikKodu\" required />\r\n    \t<p class=\"text\">\r\n         <label for=\"text\">Message<font color=\"red\">*</font></label>\r\n\t<textarea id=\"text\" name=\"text\" id=\"text\"  required/></textarea>\r\n\t</p>\r\n\t<p class=\"submit\">\r\n\t<input type=\"submit\" onclick=\"kontrolet()\" value=\"Send\" />\r\n\t</p>\r\n\t</form>\r\n\t</div>\r\n\t\t\r\nSCRIPT\t\t\tfunction gostergizle()\r\n\t\t\t{\r\n\t\t\t$(\"div#container\").show(100); \r\n\t\t\t}\r\n\t\t\tfunction sendmessage(){ \r\n\t\t\tvar veriler = $('#contact_form').serialize(); \r\n\t\t\t$.ajax({ \r\n\t\t\ttype: \"POST\", \r\n\t\t\turl: \"SMTP-PHP-Contact-Form-master/inc/send.php\", \r\n\t\t\tdata: veriler, \r\n\t\t\tsuccess:function(cevap){ \r\n\t\t\t$(\"#send\").html(\"\"+cevap); \r\n\t\t\t$(\"div#container\").hide(100); \r\n\t\t\t} \r\n\t\t\t})}; \r\n\t\t\tfunction formReset(id) {\r\n\t\t\t$('#'+id).each(function(){\r\n\t\t\tthis.reset();\r\n\t\t\t});\r\n\t\t\t}\r\n\t\t\tfunction kontrolet(){\r\n        var name=$('#name').val();\r\n\t\t\tname=jQuery.trim(name);\r\n\t\tvar email=$('#email').val();\r\n\t\t\temail=jQuery.trim(email);\r\n\t\tvar mess=$('#text').val();\r\n\t\t\tmess=jQuery.trim(mess);\r\n\t\tvar tel=$('#phone').val();\r\n\t\t\ttel=jQuery.trim(tel);\r\n        var guvenlikKodu=$('#guvenlikKodu').val();\r\n\t\t\tguvenlikKodu=jQuery.trim(guvenlikKodu);        \r\n        \r\n\t\t\tif(name==''){\r\n\t\t\talert(\"Please check your name\");\r\n\t\t\t} \t\r\n\t\t\telse if(email==''){\r\n\t\t\t\talert(\"Please check your E-Mail\");\r\n\t\t\t\t}\r\n            \r\n            else if (guvenlikKodu==''){\r\n\t\t\t\talert(\"Security code is empty!\");\r\n\t\t\t\t}\r\n            else if(mess==''){\r\n\t\t\t\talert(\"Please check your Message\");\r\n\t\t\t\t}\r\n\t\t\telse { sendmessage() } \r\n\t\t\t\t}\r\n\r\nSEND.PHP \r\n<?php\r\nsession_start();\r\nif ( isset($_POST['guvenlikKodu']) && $_POST['guvenlikKodu'] ){\r\n $guvenlikKontrol = false;\r\n if ( $_POST['guvenlikKodu'] == $_SESSION['guvenlikKodu'] ){\r\n $guvenlikKontrol = true;\r\n }\r\n  if ( $guvenlikKontrol ){\r\n$text=$_POST['text'];\r\n$name=$_POST['name'];\r\n$email=$_POST['email'];\r\n\r\nrequire(\"class.phpmailer.php\");\r\n$mail = new PHPMailer();\r\n$mail->IsSMTP();\r\n$mail->Host     = \"smtp.sendgrid.net.\"; // SMTP servers\r\n$mail->SMTPAuth = true;     // turn on SMTP authentication\r\n$mail->Username = \"computerfitness.net\";  // SMTP username\r\n$mail->Password = \"password\"; // SMTP password\r\n$mail->From     = \"contact@computerfitness.net\"; // it must be a match with SMTP username\r\n$mail->Fromname = \"computerfitness.net\"; // from name\r\n$mail->AddAddress(\"emmagallagher10@gmail.com\"); // SMTP username , Name Surname\r\n$mail->Subject  =  $_POST[ 'Message from computerfitness'];\r\n$content = \"<h2>You have a message from computerfitness.net</h2>  <p><b>Name:</b>$name</p> <p><b>E-Mail:</b>$email</p> <p><b>Message:</b>$text</p>\" ;\r\n$mail->MsgHTML($content);\r\nif(!$mail->Send())\r\n{\r\n   echo \"<center>Error! Its wrong!</center>\";\r\n   echo \"Mailer Error: \" . $mail->ErrorInfo;\r\n    echo \"<center><p><input type='submit' onclick='gostergizle();' value='Back' /></p></center>\";\r\n   exit;\r\n}\r\necho \"<center>Thank you! Your message has reached us! <p><input type='submit' onclick='gostergizle();' value='Back' /></p></center>\";\r\n } else {\r\n echo \"<center>Please check Security Code! <p><input type='submit' onclick='gostergizle();' value='Back' /></p></center>\";\r\n }\r\n}\r\n?>\r\n"},"comment":{"url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form/issues/comments/192617546","html_url":"https://github.com/kocakmhmt/SMTP-PHP-Contact-Form/issues/3#issuecomment-192617546","issue_url":"https://api.github.com/repos/kocakmhmt/SMTP-PHP-Contact-Form/issues/3","id":192617546,"user":{"login":"emmamargaret","id":17647737,"avatar_url":"https://avatars.githubusercontent.com/u/17647737?v=3","gravatar_id":"","url":"https://api.github.com/users/emmamargaret","html_url":"https://github.com/emmamargaret","followers_url":"https://api.github.com/users/emmamargaret/followers","following_url":"https://api.github.com/users/emmamargaret/following{/other_user}","gists_url":"https://api.github.com/users/emmamargaret/gists{/gist_id}","starred_url":"https://api.github.com/users/emmamargaret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmamargaret/subscriptions","organizations_url":"https://api.github.com/users/emmamargaret/orgs","repos_url":"https://api.github.com/users/emmamargaret/repos","events_url":"https://api.github.com/users/emmamargaret/events{/privacy}","received_events_url":"https://api.github.com/users/emmamargaret/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T10:27:34Z","updated_at":"2016-03-05T10:27:34Z","body":"Hi Mehmet,\nI'm so sorry - I should have seen that. So I changed the div id of the\nwhole form back to id=\"container\" and the form disappears and the message\ncome throgh super fast now - great!\nThe only thing that doesn't happen is that there is no text to say that the\nmessage was sent successfully. Perhaps it is white? Do you have any ideas?\nThank you so much,\nEmma\n\n\n\nOn 4 March 2016 at 21:11, Mehmet KOÇAK <notifications@github.com> wrote:\n\n> Hi,\n> you should change to this code:\n> $(\"div#container\").show(100); to $(\"div#contactcontainer\").show(100);\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/kocakmhmt/SMTP-PHP-Contact-Form/issues/3#issuecomment-192467787>\n> .\n>\n"}}