I'm having an weird issue. A website just suddenly stopped working correctly. Every time I try to post a form all input is NULL. This used to work (on live) and nothing has changed (code-wise). At first I thought I was hacked or something, but I tested on my local machine and all works fine. So it shouldn't be my code
My question is then: what could be causing the problem? I'm using Laravel 4.1 and it's on an Apache server (my local environment is also Apache). My guess is, it's something on the server, since my code works as expected on localhost.
Route:
Route::post('user/login', array('as'=>'user.login','uses'=>'UserController@postLogin'));
Postlogin:
public function postLogin()
{
var_dump($_POST);
View:
<form method="POST" action="http://example.com/user/login" accept-charset="UTF-8"><input name="_token" type="hidden" value="xxxxxxxxxxxxxxx">
<div class="form-row">
<div class="form-item form-item-100 f-left">
<input
type="email"
name="email"
placeholder="Email"
value=""
>
</div>
<div class="clearfix"></div>
</div>
<div class="form-row">
<div class="form-item form-item-100 f-left">
<input
type="password"
name="password"
placeholder="Password"
>
</div>
<div class="clearfix"></div>
</div>
<div class="form-row">
<div class="form-item form-item-40 f-left">
<button class="btn btn-green form-submit" type="submit">Log in</button>
</div>
<div class="clearfix"></div>
</div>
</form>