Message form does not work with twitter bootstrap (PHP $ _POST)

I just started using twitter bootstrap and I was stuck trying to submit my form submit button (PHP $ _POST). Does anyone know why it is not working?

I don’t know if it really is.

I did this before and it worked before loading:

<?php
if (isset($_POST["login"]) && $_POST["login"]=="login") {
echo "login here";
}
?>

<form action="http://mysite.com" method="post">
<input type="hidden" id="login" name="login" value="login" />
<button class="btn success" type="submit">Login</button>
</form>

The page is loading, but PHP is not working. Is POST information blocked?

+5
source share
5 answers

The form input elements did not have an identifier or name (I did not include them in my example).

+8
source

HTML, <input type="submit" />, <button type="submit" />, , button .

, button - /> , .

+3

, action="http://mysite.com"? , . , mypage.php, action="mypage.php".

0

, , name= submit. , $_POST -!

0

, (name= "elementName" ), php scipt; , .

-2

All Articles