Skip to content
Advertisement

Tag: php

Trigger AJAX single function for two buttons

I am using 2 buttons to open two separate php pages but I would like to use one function to trigger both the buttons. The AJAX function that gets triggered should check which button was pressed and then open the php page associated with it. Such that “Export Page 1” should open Page 1.php and “Export Page 2” should open

Set cookie everytime user deletes it

I want to create a cookie everytime a user deletes it, using Javascript. For example, I have many cookies, even some cookies which set a ban time to the user who abuses the website. Basically I want to set a cookie which will be set whenever all of the cookies are deleted. Btw, I do not want to create the

Advertisement