开发者

PHP $_POST not getting values

So, I have this form: (dead link)

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 开发者_如何学Cshows up nothing... Any ideas?

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


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.


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", :|

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜