I am trying to make something where you can post, and with jQuery it submits (no refresh or parsing via another page) and inserts the data into the DB. The code I am using for the jQuery is in my <head> and this is the code:
It's utterly baffling that we have no idea when we'll get new features even well after they've been released. Why Microsoft thinks this is a good rollout strategy is beyond me.
I owned a lot of Soundblaster cards over the years all the way back to the ISA slot era. I use a Soundblaster X3 external now because I'm able to run it through a KVM and have it follow the machine I happen to be using. It drives a set of JBL 305 powered monitors wonderfully. I'm not gaming or doing home theater through it, so rear channels aren't a consideration for me, though it does have side / rear / sub outputs.
I disagree that using browser based password managers is a bad idea, your passwords are encrypted by the OS password, but they also be synchronized to make them helpful. I would also use a password manager extension that supports MFA TOTP and Passkeys to manage the account that synchronizes the data.
Ente is 100% free and allows you to vault important information, has password vault support, and supports 2FA TOTP support, I just don’t believe, it has a browser extension.
Question
Shazer2
I am trying to make something where you can post, and with jQuery it submits (no refresh or parsing via another page) and inserts the data into the DB. The code I am using for the jQuery is in my <head> and this is the code:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> <script type="text/javascript" > $(function() { $(".submit").click(function() { var np = $("#np").val(); $.ajax({ type: "POST", url: "inc/ajax.php", data: np, success: function(){ $('.success').fadeIn(200).show(); $('.error').fadeOut(200).hide(); } }); } return false; }); </script>I then have the following in ajax.php and I am 100% certain it's in the correct directory.
<?php /** * @author Shannon * @copyright 2011 */ session_start(); include ("connect.php"); $user = $_SESSION['username']; $np = $_POST['np']; $np = mysql_real_escape_string($np); mysql_query("INSERT INTO `posts` (user, np) VALUES ('$user', '$np')") or die(mysql_error()); ?>That is all correct too, but it just doesn't seem to insert into the database. If anyone has an idea why, please post a reply.
Link to comment
https://www.neowin.net/forum/topic/990268-jquery-submitting-a-form/Share on other sites
17 answers to this question
Recommended Posts