D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
markniuj
/
bazmeasar.com
/
admin
/
Filename :
process_speaker.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(); ?>