-2
How to get these html input by going to the phpmyadmin database
Html
class="section2"
input type="radio"name="CumprimentoParada"id"A"value="CumprimentoParada"/>
input type="radio"name="CumprimentoParada" id=B"value="CumprimentoParada"/>
My php ...
$section2 = $_POST["section2"];
My connected bank
$servidor = "localhost";
$user = "root";
$pass = "root";
$banco = "cadastro";
//criar conexao
$conn = mysql_connect($servidor,$user,$pass)or die(mysql_error());
;
mysql_select_db($banco)or die (mysql_error());
$inserindo_cadastro "INSERT INTO cadastro($section2)VALUE('CumprimentoParada')";
$resultado_cadastro $sql = mysql_query($conn,$result_cadastro);
echo ("Respondido com sucesso!");
In this form he has a radio input,...
To get the data from
input
in php has to be by attributename
. Ex.: $section2 = $_POST["Greeting"];– Igor Mello
this error appears Parse error: syntax error, Unexpected '"' in line 61
– Ricardo Mendes
In this line there is this excerpt : $input_registration "INSERT INTO Registration(Greeted)VALUE('$section2')";
– Ricardo Mendes
Your code is a little fuzzy and with a lot of errors!
– Igor Mello