D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
markniuj
/
.vscode-server
/
data
/
User
/
History
/
7119fd25
/
Filename :
JkSR.php
back
Copy
<?php include "../config.php"; ?> <?php // Retrieve form data $spname = $_POST['spname']; // Insert data into the database $sql = "INSERT INTO speakers (spname) VALUES ('$spname')"; if ($conn->query($sql) === TRUE) { // Redirect to index.php header("Location: index.php"); exit; // Ensure that no further code is executed } else { echo "Error: " . $sql . "<br>" . $conn->error; } $conn->close(); ?>