I am building an application with php I have a form which contains an array of checkboxes as shown in the picture below I want to the values accordingly but it is not working as expected The form was generated with php for loop HTML I am trying to get the selected values but not working as expected. leaked_no shows
Tag: html
How can I center my div content responsively with sidebar and top menu on the same page?
I’m trying to center my div content responsively with a sidebar menu and a top menu using bootstrap. But my div content is placed at the bottom of my page when I require the side-menu file and I don’t know why. I’m not using any CSS file, just Bootstrap 5.2, but if your solution requires CSS that’s okay. INDEX SIDE
How do I filter with dropdown list? PHP and SQL
We are trying to filter based on the tags or the dropdown menu, we are trying to create a blog website that has tags and those tags can be used to filter the posted content on the homepage Tags dropdown menu:. Here should be the content in the page: Here should be the content in the page: Answer Set tags
Only first row button is working in a table
Problem: In the complete column, there is yes button after clicking on it, it show consulted but problem is only one row is working. I don’t understand how i defined each row uniquely. Please have a look at this code and let me know what mistake I’m doing here. Answer The issue is because you’re using id attributes in the
errors messages with html and php
i have this code bellow: it doesn’t show any error when the email is not correct or the password is less than 6, and inserts data normally, I need to show for example two error messages if both password and email are not correct, how can I do it? Answer Amend your code so that it will NOT execute the
PHP submitting a form is destroying my sessions
Hello I am trying to make a form in the page where I created a session so when I submit the form the sessions gets destroyed here is my code: PHP code to start the session : Answer Make sure you have session_start(); at the top of all the PHP scripts So, put the session_start(); at the top of the
How to copy HTML content into a new tab [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 4 months ago. Improve this question I am building a web app and I need to copy an HTML
Retrieve Data from POST Method and Display in HTML H1 Tag
Greetings, I am developing a website using WordPress and elementor. I have a form with the POST method on page1 which is redirecting the user to page2. How do I receive that data on page2 and display it in the H1 tag on the same page? Answer Data submitted from a form with the method=’post’ attribute can be accessed using
Change Content of Page Depending on if User Access It via URL Bar vs. a Button on Website
I’m currently developing a website on WordPress Is there a way, with either the use of JS or PHP, to make it so that when the user clicks an anchor tag within the website, they are taken to another page, but if they decide to go to that same page by typing the URL in the search bar, they are
How to replace a character in a class echoed from DB using javascript
I have this table that I echoed in a page I’m making, and in the output is a series of products separated by a comma (,) Here is the code for the column: here is a sample ouput: expected output: This is my current code but it doesn’t seem to work: What am I doing wrong? Answer As CBroe says