Skip to content

Tag: html

Password in confirm box Javascript

I have a Delete button in my PHP page which deletes a record. But when I delete that button I do a confirm box with: Can I make it so when they confirm they have to fill in a password? So what I mean is something like this And then they have to fill in a password Thanks in advance.

Displaying BLOB image from Mysql database into dynamic div in html

I have a BLOB image that is stored when the user submits an advert form, they have the choice of uploading one image. The image is stored in the database with the other information. Every time my page loads it dynamically creates the advert divs and also fills in the matching information from my database into…

Insert a CSS file within a PHP class

I have a little problem, which I can’t figure out by myself. I created sort of a “webengine”, which I build out of several classes. The main-class, getting a “theme’s” internals is called “Logic”. This logic-class includes all the files, needed for a website. I …

Setting Cookie on click

I’m having an issue creating / setting a cookie on the click of a link, is there a proper way to do this? Either PHP or Javascript is fine. Obviously both JS and PHP wouldn’t exist in the same instance it was just to show what I have. Answer You can’t mix JavaScript and PHP. By the time your…

How to replace custom html tag with html code in php

This is my scenario: In a custom CMS developed in PHP, I need to parse HTML string searching some custom tags to replace them with some HTML code. Here is an example for clarifying: I need to find the custom tags and replace them with the template of the item, as a result: This would be very helpful, but I

is not refreshing

I had a (very) simple login script which was working beautifully, and somehow, without much, if any, changes on the script page I have the following error: The Problem <meta http-equiv="refresh" …