One Hat Cyber Team
Your IP :
18.117.241.170
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
ef.electronharmony.com
/
1
/
T1
/
View File Name :
form_data.php
<?php // 数据库连接配置 $servername = "localhost"; $username = "tfrom"; // 替换为你的数据库用户名 $password = "kt7Y5dkKDn6cartm"; // 替换为你的数据库密码 $dbname = "tfrom"; // 创建连接 $conn = new mysqli($servername, $username, $password, $dbname); // 检查连接是否成功 if ($conn->connect_error) { die("连接失败: " . $conn->connect_error); } // 遍历表单提交的数据 foreach ($_POST as $field_name => $field_value) { $stmt = $conn->prepare("INSERT INTO submissions (field_name, field_value) VALUES (?, ?)"); $stmt->bind_param("ss", $field_name, $field_value); // 执行SQL语句 $stmt->execute(); $stmt->close(); } // 关闭数据库连接 $conn->close(); // 重定向回表单页面或显示成功消息 header("Location: index2.html"); exit(); ?>