Skip to content

Tag: php

Keep input value after refresh page

I have a form with input field and this input contain a drop down menu read information from database. If the user enters value and when he arrives to the drop menu he doesn’t find what he wants he go to another page to add this info to the drop down menu and then go to the first page to

Loading GIF on normal form submit

I don’t know if this is possible because according to my concept it is not.Say I have a form: Now this form takes at least 10-15 seconds to load because of obviously there are lots of record. I know using AJAX i can make a loading GIF and load the records. But is there a way in which without using

Inserting value in a JavaScript variable from php code

I am trying to test the following code for inserting the value from PHP code to my javascript variable x tested the PHP code, and it’s giving the correct output but the alert box in the javascript shows this – date_sub(curdate(),interval 1 day) and activity=1 group by code having b > 1000&#8243…

How do I tell if a user is using Brave as their browser?

I have been messing around with the Brave browser (https://www.brave.com/), an I cannot figure out how to determine how if a user is using Brave. I used a simple document to output the user agent: and I get: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 …