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. Link to comment https://forums.phpfreaks.com/topic/279857-need-help-with-post-variables/ Share on other sites More sharing options...
boompa Posted July 4, 2013 Share Posted July 4, 2013 It's $_POST not $_post. Case sensitivity and all. Link to comment https://forums.phpfreaks.com/topic/279857-need-help-with-post-variables/#findComment-1439395 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. Link to comment https://forums.phpfreaks.com/topic/279857-need-help-with-post-variables/#findComment-1439397 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.