viernes, 14 de noviembre de 2014

Examen Unidad 5


Cuestionario

http://programacion-web-itcj-2014.besaba.com/bienvenidos/encuesta.html

<html>
<head>
<title>Encuesta</title>
</head>
<body>

<form method="post" action ="encuesta.php">

<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite>  1. How easy was it to install our software? </h2></cite>
<align="left">
<input type="radio" name="group1" value="install"> Extremely easy<br>
<input type="radio" name="group1" value="install" checked> Very easy <br>
<input type="radio" name="group1" value="install"> Moderately easy<br>
<input type="radio" name="group1" value="install" checked> Slightly easy <br>
<input type="radio" name="group1" value="install"> Not at all easy

<hr>


<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite>  2. How user-friendly is our software's interface? </h2></cite>
<align="left">
<input type="radio" name="group2" value="interface"> Extremely user-friendly<br>
<input type="radio" name="group2" value="interface" checked> Very user-friendly <br>
<input type="radio" name="group2" value="interface"> Moderately user-friendly<br>
<input type="radio" name="group2" value="interface" checked> Slightly user-friendly <br>
<input type="radio" name="group2" value="interface"> Not at all user-friendly

<hr>

<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite>  3. How often does our software freeze or crash? </h2></cite>
<align="left">
<input type="radio" name="group3" value="freeze_crash"> Extremely often<br>
<input type="radio" name="group3" value="freeze_crash" checked> Very often <br>
<input type="radio" name="group3" value="freeze_crash"> Moderately often<br>
<input type="radio" name="group3" value="freeze_crash" checked> Slightly often <br>
<input type="radio" name="group3" value="freeze_crash"> Not at all often

<hr>

<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite>  4. How successful is our software in performing its intended task? </h2></cite>
<align="left">
<input type="radio" name="group4" value="performing"> Extremely successful<br>
<input type="radio" name="group4" value="performing" checked> Very successful <br>
<input type="radio" name="group4" value="performing"> Moderately successful<br>
<input type="radio" name="group4" value="performing" checked> Slightly successful <br>
<input type="radio" name="group4" value="performing"> Not at all successful

<hr>

<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite> 5. How useful is the included documentation for our software?</h2></cite>
<align="left">
<input type="radio" name="group5" value="documentation"> Extremely useful<br>
<input type="radio" name="group5" value="documentation" checked>Quite useful <br>
<input type="radio" name="group5" value="documentation"> Moderately useful<br>
<input type="radio" name="group5" value="documentation" checked> Slightly useful <br>
<input type="radio" name="group5" value="documentation"> Not at all useful



<hr>


<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite> 6. How helpful is the customer support for our software?</h2></cite>
<align="left">
<input type="radio" name="group6" value="support"> Extremely helpfull<br>
<input type="radio" name="group6" value="support" checked>Very helpful <br>
<input type="radio" name="group6" value="support"> Moderately helpful<br>
<input type="radio" name="group6" value="support" checked> Slightly helpful <br>
<input type="radio" name="group6" value="support"> Not at all helpful



<hr>


<form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
<div align="left"><br>
<h2><cite> 7. Was the shipping time of our product reasonable?</h2></cite>
<align="left">
<input type="radio" name="group7" value="shipping_time"> Extremely reasonable<br>
<input type="radio" name="group7" value="shipping_time" checked>Quite reasonable <br>
<input type="radio" name="group7" value="shipping_time"> Moderately reasonable<br>
<input type="radio" name="group7" value="shipping_time" checked> Slightly reasonable <br>
<input type="radio" name="group7" value="shipping_time"> Not at all reasonable



<hr>

<h2><cite> 8. How can we improve our software?</h2></cite>


<textarea id="text_617897311_0" name="text_617897311_0" class="open" rows="3" cols="50"></textarea>

<hr>


<div align="left"><br>
<h2><cite> 9. Overall, are you satisfied with our service, dissatisfied with it, or neither satisfied nor dissatisfied with it?</h2></cite>
<align="left">
<input type="radio" name="group8" value="improve"> Extremely satisfied<br>
<input type="radio" name="group8" value="improve" checked>Quite satisfied <br>
<input type="radio" name="group8" value="improve"> Somewhat satisfied<br>
<input type="radio" name="group8" value="improve" checked> Neither satisfied nor dissatisfied <br>
<input type="radio" name="group8" value="improve"> Somewhat dissatisfied<br>
<input type="radio" name="group8" value="improve" checked> Quite dissatisfied<br>
<input type="radio" name="group8" value="improve"> Extremely dissatisfied



<hr>

<h2><cite> 10. How likely is it that you would recommend our software to a friend or colleague?</h2></cite>

<table cellspacing="0" cellpadding="0" border="0" style="width:100%;"><thead><tr><th class="CustomAnswerText" scope="col" style="width:1%;">Not at all likely - 0</th><th class="CustomAnswerText" scope="col" style="width:1%;">1</th><th class="CustomAnswerText" scope="col" style="width:1%;">2</th><th class="CustomAnswerText" scope="col" style="width:1%;">3</th><th class="CustomAnswerText" scope="col" style="width:1%;">4</th><th class="CustomAnswerText" scope="col" style="width:1%;">5</th><th class="CustomAnswerText" scope="col" style="width:1%;">6</th><th class="CustomAnswerText" scope="col" style="width:1%;">7</th><th class="CustomAnswerText" scope="col" style="width:1%;">8</th><th class="CustomAnswerText" scope="col" style="width:1%;">9</th><th class="CustomAnswerText" scope="col" style="width:1%;">Extremely likely - 10</th></tr></thead><tbody><tr class="matrixAltRow"><td align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539713" value="7614539713"><label for="input_659279976_60_7614539732_7614539713" id="linput_659279976_60_7614539732_7614539713" class="rb_off"><span class="qLabel"><abbr class="noborder" title="Required"></abbr></span></label></div></td><td align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539714" value="7614539714"><label for="input_659279976_60_7614539732_7614539714" id="linput_659279976_60_7614539732_7614539714" class="rb_off"><span class="qLabel"> </span></label></div></td><td align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539715" value="7614539715"><label for="input_659279976_60_7614539732_7614539715" id="linput_659279976_60_7614539732_7614539715" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539716" value="7614539716"><label for="input_659279976_60_7614539732_7614539716" id="linput_659279976_60_7614539732_7614539716" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539717" value="7614539717"><label for="input_659279976_60_7614539732_7614539717" id="linput_659279976_60_7614539732_7614539717" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539718" value="7614539718"><label for="input_659279976_60_7614539732_7614539718" id="linput_659279976_60_7614539732_7614539718" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539721" value="7614539721"><label for="input_659279976_60_7614539732_7614539721" id="linput_659279976_60_7614539732_7614539721" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539723" value="7614539723"><label for="input_659279976_60_7614539732_7614539723" id="linput_659279976_60_7614539732_7614539723" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539726" value="7614539726"><label for="input_659279976_60_7614539732_7614539726" id="linput_659279976_60_7614539732_7614539726" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539727" value="7614539727"><label for="input_659279976_60_7614539732_7614539727" id="linput_659279976_60_7614539732_7614539727" class="rb_off"><span class="qLabel"> </span></label></div></td><td
align="center"><div class="qOption CustomAnswerText"><input type="radio" class="rb" name="input_659279976_60_7614539732_0" id="input_659279976_60_7614539732_7614539729" value="7614539729"><label for="input_659279976_60_7614539732_7614539729" id="linput_659279976_60_7614539732_7614539729" class="rb_off"><span class="qLabel"> </span></label></div></td></tr></tbody></table><br>
<div align="center"><br>



<hr>

<h2><cite> Add your email address</h2></cite>


<textarea id="text_617897311_0" name="text_617897311_0" class="open" rows="3" cols="40"></textarea>

<hr>




<input type="submit" value="ENVIAR " name="submit" />
<div align="center"><br>

</div>
</form>
</body>
</html>






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>Aliens Abducted Me - Report an Abduction</title>
</head>
<body>
  <h2>Encuesta - Software Evaluation Survey Template</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['text_617897311_0'];
  $H9 = $_POST['group8'];
  $H10 = $_POST['input_659279976_60_7614539732_0'];
  $H11 = $_POST['text_617897311_0'];

$dbc = mysqli_connect('mysql.hostinger.com.ar', 'u225682781_ana', 'ana123', 'u225682781_form') 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>






No hay comentarios.:

Publicar un comentario