I would like to have an if/then argument for 2 classes (from the css) for a menu item. One where the menu item is blue if it is NOT the active page, and one where the menu item is red if it IS the active page. I have figured out the active page portion, now I am trying to figure
Is there’s a way to shut down window with php?
I want to shut my window down using PHP, but I haven’t found any good resource. I wonder if there is a way to do that in PHP. Answer Yeah. But no. Please, just please don’t take this too seriously. PHP is a server side language. Which means it has no access to your browser itself. You should try u…
Download an file that have been submitted with post method
how to download a file that have been submitted in a php post method? Here is my shot with an image, i have tried a lot of stuff on the server side but it ain’t working. The client is this: <form …
Input password show and hide
I hope I don’t bother you with a question 🙂 . I have little knowledge about writing code, so I encountered an error there are two inputs I added an eye icon with bootstrap when clicked, the password appears the first input works, but the second input does not show the password What do you think is the p…
Fetching Images URL from wikipedia
I’m using wikipedia api to scrape images from api its returning data in json form in which the image Url is like this “https://upload.wikimedia.org/wikipedia/en/f/f7/Canada%…
checkbox print custom array E.g. if chooses Mon, Wed, Fri, Sat, Sun
I have checkbox like this: E.g. if chooses Mon, Wed, Fri, Sat, Sun. return Mon, Wed, Fri – Sun E.g. if chooses Sat, Sun. return Sat – Sun E.g. if chooses Mon, Tue, Thu, Sat, Sun return Mon, Tue, Thu, Sat, Sun How can I implement that? Is this possible? Answer this is function in javascript
php -S randomly not working: localhost refused to connect [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I am u…
Why is PDO converting my bool(false) param to string(”)?
I have a problem with a new MariaDB 10.5.8 install. STRICT_TRANS_TABLES is set, and when I try to use $sql of: ‘INSERT INTO test (flag) VALUES (?)’ (where flag is defined as tinyint(1)) with …
Viewing Documents Stored Outside the Domain’s Folder [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I’m trying to fetch the files in a folder that it outside the site’s path and, wi…
In modal form get element value correct row
i have problem with getting info in my modal form. I have rows what shows information. Screen shot bellow Then i press button right im getting modal window. Screen shot bellow I want make then i press my button in right get what row info and put in input. My code in php and html MY MODAL FORM code My