for my website i have some static header/footer HTML and some dynamic content generated by PHP. When it comes to render the output I just include a file with HTML inside from my PHP code. This works perfect – also when I switch between pages. But I also need some header.hmtl and footer.html that contain…
Tag: html
PHP get function is empty for hidden container
I am trying to $_GET a hidden input using PHP. When I check the html code in Chrome, Safari, etc., I can see the value of the hidden variable but when I try to echo it with PHP it is empty. All of …
how can i use only one file instead of 4 php files that are basically the same?
i basically have a simple porgram to count how many times a click a specific button and then send it to mysql, but for each button i have diferent tables and separated files. I would like to know if …
How to Add message to the @Assert?
I am trying to customize Symfony validator messages! * @UniqueEntity(fields={“email”}, message=”The Email is already used.”) The unique entity error message works perfectly fine and shows up like …
input with separated options (php, js, html)
Greetings all! I would like to ask you all for advice with my idea here. And your opinion. The thing is. I have 5 text inputs and many separated divs (options). When I click on div, I want to get …
I have a single div and it needs to be duplicated dynamically
I have a single div and a unknown number(say n) of rows of data. i need to show that data on my html cards and these cards are to be generated dynamically by the output value(n). say if i have 10 …
creating a quiz with php and pdo
I’ve created a quiz for my website, the admin can sign in and change the questions or add questions etc. For the quiz page I’m taking the information down like so: try { $stmt = $db->query(‘…
Regarding HTML5canvas div images to download individually
I need help i want to download the htmlf 5 canvas for each individuall and im calling the image data dynamic but not been able to download the canvas plzz help me out from such informartion through my …
Else element not returning the correct result
I have created a select statement using php to return results to an HTML based on user input. The feedback is returned based on the input fields matching fields in a manually populated table. The …
How to execute a Python program in PHP and use the return value inside HTML ?
How would I go about executing Python code from PHP? I belive shell_exec(Command) will run a command from the terminal. I have tried this so far: <?php $command = escapeshellcmd('python3 main.py')…