glaston Posted July 4, 2013 Share Posted July 4, 2013 Hello I need some help, can't seem to solve this myself. Notice: undefined variable: _post in /home/.../.php on line 191 Notice: undefined variable: _post in /home/.../.php on line 192 Notice: undefined variable: _post in /home/.../.php on line 193 This is the code, starting on line 191 $aantal_totaal = $_post['aantal_totaal'.$id]; $aantal_extra = $_post['aantal_extra'.$id]; $meerprijsopdracht = $_post['meerprijsopdracht'.$id]; //aantal lln uitrekenen $aantal_lln = $aantal_totaal - $aantal_extra ; //meerprijs verdelen over leerlingen $meerprijs_lln = $meerprijsopdracht / $aantal_lln; //meerprijs in klaskopie updaten $sql3="UPDATE klaskopie SET meerprijsleerling=(lln*$meerprijs_lln) WHERE kkkopieid='".$id."'"; This is the form (partially): <input type="hidden" name="id[]" value="<? echo $rows['id']; ?>" /> <input type="hidden" id="aantal_totaal" name="aantal_totaal<? echo $rows['id']; ?>" value="<? echo $rows['aantal_totaal']; ?>" /> <input type="hidden" id="aantal_exra" name="aantal_extra<? echo $rows['id']; ?>" value="<? echo $rows['aantal_extra']; ?>" /> <input type="hidden" id ="meerprijsopdracht_oud" name="meerprijsopdracht_oud<? echo $rows['id']; ?>" value="<? echo $rows['meerprijsopdracht']; ?>" /> I've been staring at this code for hours. Quote Link to comment Share on other sites More sharing options...
Solution boompa Posted July 4, 2013 Solution Share Posted July 4, 2013 It's $_POST not $_post. Case sensitivity and all. Quote Link to comment Share on other sites More sharing options...
glaston Posted July 4, 2013 Author Share Posted July 4, 2013 Thank you ever so much! I absolutely did not see it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.