HTML form, Javascript, PHP, and DB connection with MySQL

montrealian

New Member
I have a form and upon filling it out, I want the data to be inserted into a database. As of now, the database has two columns, "feedback" and "date". But right now, only the "date" gets inserted into the database, not the "feedback".HTML Form:\[code\]<form class="form-inline" action="JavaScript:sendFeedback()" method="get"><textarea name="Feedback" placeholder="Feedback..." rows="5" cols="100"></textarea> <button type="submit" class="btn">Tell us</button></form>\[/code\]Javascript:\[code\]function sendFeedback() { _gaq.push(['_trackPageview', 'OutgoingLink=SendFeedback' ]); $.get("../php/NewFeedback.php",{Feedback:$('input[name="Feedback"]').val()}); var element = document.getElementById("FeedbackArea"); element.innerHTML = "<div class=\"alert alert-success\"> <a class=\"close\" data-dismiss=\"alert\" href=http://stackoverflow.com/"#\">
 
Back
Top