Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Form submit not working with twitter bootstrap (PHP $_POST)

I just started using twitter bootstrap, and I got stuck trying to get my form submit button to submit (PHP $_POST). Does anyone know why its not working?

No clue really..

I've been doing this previously and its been working until bootstrap:

<?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 seems to load but the PHP does not. Is the POST information being blocked?

like image 323
BLACKBERRY COCONUT Avatar asked Dec 09 '11 10:12

BLACKBERRY COCONUT


1 Answers

My form input elements did not have an id or name (I didn't include them in my example).

like image 184
BLACKBERRY COCONUT Avatar answered Oct 07 '22 16:10

BLACKBERRY COCONUT