Skip to content
Advertisement

Tag: html

Laravel 8 form to update database

I am creating a simple blog site with CRUD functionality in Laravel 8. I have done this before using the deprecated Laravel forms, but am now trying to do it using HTML forms. However, I am having some problem with the update part of the website. I have a controller called BlogsController with this function to be called to update

getting html innertext in php

I want to get a innertext value in my html to store it in my php variable. So far I have this. This is my html code. I want to get innertext value of < p > which will show a float number calculated by my Javascript. In my php code I have this. I get Undefined variable error. What

Editing form with jquery-confirm

I’m using jquery-confirm, and I need to capture the name of the element which i clicked to edit. jQuery and jQuery-confirm PHP SCRIPT Obs: Where It’s written “$ Name of the product”, should appear the name of each product that I click. Answer You can use this.$target to get a tag which is clicked then using .closest(‘tr’).find(‘td:eq(0)’).text() get first td

CSS border not showing when background-coloris added

I have written a code that works great for me. So I have a (half) border around my picture. like the picture below. But when I add a background-color the line dissapears. Now I want the oppiste colors but there for I need a background-color. So I did that but now the border isn’t showing anymore. So I want a

PHP: Why am I getting “Undefined property: myCar::$model”

I’m new to PHP and I am trying to follow a course. According to the tutorial I should get the output “Sports” What is causing the code to result in an error of undefined property? Warning: Undefined property: myCar::$model in C:xampphtdocsTestindex.php on line 16 Screenshot of tutorial results Many thanks, Stuart Answer Correct way to do it: Output: https://3v4l.org/bnNrm Note:

Advertisement