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:
If you are willing to go to approx $200, then as mentioned in your other thread I think a refurbished Pixel 8 will be a great deal that will last you for years.
I recently recommended that to someone at work, he was on a strict £200 budget, which got him an excellent conditioned refurbished Pixel 8 here. He's since told me its the best phone he's ever had and feels its a massive upgrade over his old Samsung A series device.
I don't know the sites which deal in refurbished devices in the US, however I’m sure you will have some options like we do here. Failing that Ebay is also quite good in my experience.
If you wanted something a bit cheaper, then you could maybe go for an older Pixel 7, these will still get security updates until the end of 2027. Even after that you have good third party OS support from LineageOS.
It doesn't have to be a Pixel though, you can buy many older devices for a good deal that would be better than a new $100 phone and flash LineageOS to them: https://wiki.lineageos.org/devices/
I don't use one drive, but then I don't use any cloud storage, not even Icloud on my mac.
If I did use cloud storage, then I would not use One drive, not because there is anything wrong with it, but because I can use Icloud.
The only reason I see to use one drive is if your job requires you to have access to it
Not built in, which is not a bad thing. There are ways of adding cloud storage to it, Dropbox is the most well know that also have a client for Linux, but there are others.
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