I have this code (it's an include), but the thing is that when I send the form the $_POST data is not being sent. Im checking for $_POST data like this
if(isset($_POST['ft_upload']) && $_POST['ft_upload'] == 1){ //$usuario -> uploadFirstTime2($db); echo "ok"; } and the code for the form is
<div class="ft_userImage" style="background: url(<?php echo $usuario -> getProfileImage(); ?>);"></div> <p class="ft_step2_continue"><?=$TEXT_BUTTONS['continue'];?></p> <form action="" method="POST" class="ft_step2_form_upload"> <input type="hidden" name="ft_upload" value="1" /> </form> <script> $("p.ft_step2_continue").click(function(){ $(".ft_step2_form_upload").submit(); }); </script>
networktab or something and look for "form data" and "request method".