tags:

views:

73

answers:

2

So, I have this form http://www.hidroactiv.ro/contact.html

And this in the PHP:

$nume = $_POST['Nume'];
$email = $_POST['Email'];   
$telefon = $_POST['Telefon'];   
$judet = $_POST['Judet'];   
$persoana = $_POST['Persoana']; 
$mesaj = $_POST['Mesaj'];
echo "Valori memorate:"; 
echo $nume,$email,$telefon,$judet,$persoana,$mesaj;
echo "<br>";

But it shows up nothing... Any ideas?

I know the source code looks awful, but this is a page I've bade 2 years ago when I was still learning the basics of HTML.

+4  A: 

It may be the enctype="text" attribute in your form (which should auto-translate to enctype="text/plain", I don't know). IIRC, that enctype is valid for GET requests only.

Pekka
+1  A: 

Ok, that was something stupid: I wrote:

<input name="Nume" class="form" type="style6" id="Nume" size="30" />

So the type was "style6" instead of "text" ... Damn, 45mins, 45MINS, for that type="style6", :|

Cristy