Jump to content

need help with post variables


glaston

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.