Skip to content
Advertisement

Tag: ajax

Why is my AJAX method sending form input to the URL?

Once a user submits their form, I want to use JQuery/AJAX to stop the page from redirecting/reloading. But what is happening, is the user data is refreshed and displayed in the URL – even though I am using the POST method! I have 2 forms on my landing.html page, but I’ll just give the coding for 1 of them: It

Change Website Content with PHP and AJAX Without Page Reload

A server process changes the content of a file readme.txt which is located in a users home directory (Linux Ubuntu 20.04 Server). I want to reflect the file content on the page without fully reloading the site. Therefore I tried AJAX in the index.php file: Shouldn’t an AJAX GET request to the PHP file itself load the new content and

Add a call to PHP in a jQuery button with Ajax

I tried to modify the behaviour of the Save button in my DokuWiki (see my post on their forum without answer yet). I want to call a specific file.php when the user hits the Save Button, i.e. every time there is an edit in the wiki. The PHP file recalculates all the connections in the Wiki and creates a new

Get different values of same string in PHP

I have checkboxes of categories in a form. When checkbox is changed, from is submitted through ajax and get the values in PHP. //form I get the form data and submit through ajax In PHP, I am getting input fields as a string I tried to get the inputs values of category using explode, parse_str but could not get all

Advertisement