skip to Main Content

Get values from PHP Ifelse statement

Offer.php have 200-300 if else statement. My team leader want to get values of if else statement. I Need values of $_GET and == "value". Offer.php : <?php if (isset($_GET['test']) && $_GET['test'] == "one") { include "hi.php"; } elseif (isset($_GET['demo'])…

VIEW QUESTION

how to use javascript to change background color on condition

hi everyone i'm new so please be nice:) --edit 2: so this is what im onto now colorChange: function(data) { console.log(data.main.temp); var tempColor= this.displayWeather(document.querySelector(data.main.temp).value); if(tempColor<=10){ document.body.style.backgroundColor="lightgrey"; } else if(tempColor>=11&&tempColor<20){ document.body.style.backgroundColor="lightblue"; } else{ document.body.style.backgroundColor="lightcoral"; } } it seems the issue is…

VIEW QUESTION
Back To Top
Search