Hi,
I am starting to learn PHP and i am trying out some stuff. Now i started to get into mysql databases, whose basics doesnt seem too hard, as i already knew some SQL basics and i understand the overall sintax.
Anyway, the problem i am facing is that when i try to get values from a form and send it to another php file to process and insert on a DB, it never works...anyway...my code looks something like this :
File 1 ( the one with the forms )
<form action='inserir.php' method='get'> // Or post or whatever..tried that too.
<input name='nome' type='text' size=30>
<input name=''test' type='text' size=30>
<input type='submit' value='Cadastrar'>";
...
File2 (inserir.php - it would process the values taken from the forms)
<?php $sql Insert into xxxx ( nome, test ) values ($nome,$test)...
...
How exactly i get the $nome and $test variables to get the values from the forms ? I've tried some books and some tutorials but none seem to explain it exactly...
Thanks,
Ivan