Hello...I keep getting this error message and I cannot get my page to load on th
ID: 3573775 • Letter: H
Question
Hello...I keep getting this error message and I cannot get my page to load on the server. Can you please help?
PHP Language connection.php ally child94 a chattoogabelleengag... a chattoogabelleengag. COM 215 Site cars php connection.php home images index.html o job.html style positioning.css style.css templates bottom of page... faq.php record question. top of page.php work course data.html o form confirmati... o greenville.html index 1.html o work .html EPSON001 PDF Run Run Settings... View Untitled 2.php Untitled 3.php cars php Untitled.php cars h php include once connection.php 4 if SERVER ["REQUEST METHOD"] POST") && isset($ POSTI categories form $category name mysqui real escape string ($conn, POST[ name']) $category description mysqui real escape string ($conn, POST category sinsert categories query sprintf ("insert into categories (category name, category description values ('ss $category name, $category description) sinsert categories mysqli query ($conn, sinsert categories query or die (mysqli error($conn)); $last record mysgli insert id ($conn); 17 18 DOCTYPE html> 19Explanation / Answer
You are getting this error because you cannot use the function return value directly in the isset(), like you have given in the first if statement. Instead of that you can try like this:
if(($_SERVER["REQUEST_METHOD"]=="POST")){
$var = $_POST(['categories_form']);
if(isset($var)){
}
}
This will store the return value of $_POST['categories_form'] in a variable $var, then you can check whether this variable $var is set or not
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.