php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<h2>Encuesta - Software </h2>
<?php
$H1 = $_POST['group1'];
$H2 = $_POST['group2'];
$H3 = $_POST['group3'];
$H4 = $_POST['group4'];
$H5 = $_POST['group5'];
$H6 = $_POST['group6'];
$H7 = $_POST['group7'];
$H8 = $_POST['group8'];
$H9 = $_POST['group9'];
$H10 = $_POST['group10'];
$H11= $_POST['group11'];
$H12 = $_POST['group12'];
$H13 = $_POST['group13'];
$H14 = $_POST['group14'];
$H15 = $_POST['group15'];
$H16 = $_POST['group16'];
$H17 = $_POST['group17'];
$H18 = $_POST['group18'];
$H19 = $_POST['group19'];
$H20 = $_POST['group20'];
$H21 = $_POST['text_617897311_0'];
$H22 = $_POST['group22'];
$H23 = $_POST['group23'];
$H24 = $_POST['group24'];
$H25 = $_POST['input_659279976_60_7614539732_0'];
$H26 = $_POST['text_617897311_0'];
$H27 = $_POST['group27'];
$dbc = mysqli_connect('mysql.hostinger.com.ar', 'u360072057_encue', 'u360072057_alexa', 'alemiil0210') or die('Error connecting to MySQL server.');
$query = "INSERT INTO encuesta(install, interface, freeze_crash, performing,documentation, support, shipping_time, improve, service, likely, email) VALUES (' $H1', ' $H2', '$H3', '$H4', '$H5','H6', '$H7', ' $H8', '$H9', '$H10', '$H11')";
$result = mysqli_query($dbc, $query)
or die('Error querying database.');
mysqli_close($dbc);
echo ' ENCUESTA AGREGADA <br />';
?>
</body>
</html>
html



No hay comentarios:
Publicar un comentario