Jump to content

need help with post variables


glaston
Go to solution Solved by boompa,

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.