Greetings,

This problem kept me searching for a solution for days.
I hope someone can help me.
I can't find spelling errors
Below is part of the form. (The whole form can be had at www.pebesoft.co.nz/ir4312.htm
The other part of the form works OK

A Var dump does not show the variables.

Posting those variables give the following notces:


Notice: Undefined index: co48 in C:\wamp\www\submitir412.php on line 199

Notice: Undefined index: cd48 in C:\wamp\www\submitir412.php on line 200

Notice: Undefined index: co49a in C:\wamp\www\submitir412.php on line 201

Notice: Undefined index: co49b in C:\wamp\www\submitir412.php on line 202

Notice: Undefined index: co49c in C:\wamp\www\submitir412.php on line 203

Notice: Undefined index: co50a in C:\wamp\www\submitir412.php on line 204

Notice: Undefined index: co50b in C:\wamp\www\submitir412.php on line 205

Notice: Undefined index: co50c in C:\wamp\www\submitir412.php on line 206

Notice: Undefined index: co50d in C:\wamp\www\submitir412.php on line 207

Notice: Undefined index: co51 in C:\wamp\www\submitir412.php on line 208

Notice: Undefined index: cod51 in C:\wamp\www\submitir412.php on line 209

Notice: Undefined index: co52 in C:\wamp\www\submitir412.php on line 210

Notice: Undefined index: co53 in C:\wamp\www\submitir412.php on line 211

Notice: Undefined index: cd53 in C:\wamp\www\submitir412.php on line 212

Notice: Undefined index: co54 in C:\wamp\www\submitir412.php on line 213

Notice: Undefined index: co54a in C:\wamp\www\submitir412.php on line 214

Notice: Undefined index: co55 in C:\wamp\www\submitir412.php on line 215

<form name="IR4" id="IR4" onsubmit="return checkform(this)" method="post" action="submitir412.php" enctype="multipart/form-data">

<td class="c13" align="left" height="30" width="1005"><strong><span class="c18"><span class="c11 c5">48 Opening balance at 1 April Enter D for debit or C for credit&nbsp;&nbsp; </span> &nbsp;<span class="c19 c4"><input name="cd48" class="c28" size="3"></span></span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co48" size="10" class="c20" onblur="this.value=formatAmount(this.value);" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">49A FDT paid</span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co49a" size="10" class="c20" onblur="this.value=formatAmount(this.value);" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">49B FDP credits attached to dividends received</span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co49b" size="10" class="c20" onblur="this.value=formatAmount(this.value);" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">49C Total credits</span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co49c" size="10" class="c20" readonly="readonly" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">Debits</span></strong></td>
<td class="c13"></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">50A FDP credits attached to dividends paid</span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co50a" size="10" class="c20" onblur="this.value=formatAmount(this.value);" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">50B FDP refunded</span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co50b" size="10" class="c20" onblur="this.value=formatAmount(this.value);" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c18"><span class="c11 c5">50C Other</span> <span class="c19 c4"><input name="other50c" class="c31" size="72"></span></span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co50c" size="10" class="c20" onblur="this.value=formatAmount(this.value);" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005"><strong><span class="c11 c5">50D Total debits</span></strong></td>
<td class="c13"><span class="c18 c24 c15 c4">
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input name="co50d" size="10" class="c20" readonly="readonly" onmousemove="FDP(this.form)"></span></td>
</tr>
<tr>
<td class="c13" align="left" height="30" width="1005">
<p class="c37 c2"><span class="c24"><strong><span class="c11

// part of submit form
$co48 = $_POST;
$cd48 = $_POST;
$co49a = $_POST;
$co49b = $_POST;
$co49c = $_POST;
$co50a = $_POST;
$co50b = $_POST;
$co50c = $_POST;
$co50d = $_POST;
$co51 = $_POST;
$cd51 = $_POST;
$co52 = $_POST;
$co53 = $_POST;
$cd53 = $_POST;
$co54 = $_POST;
$co54a = $_POST;
$co55 = $_POST;

first of all use the described procedure to post ur problem....

first of all use the described procedure to post ur problem....

I am sorry if I did not post according to certain procedures.
Where do I fond those rules?
PB

the source code u r writing musr be within the code tag....
and bt the way i saw ur form it is missing submit button....
to do it simple....i m posting an example to do it....
the code for abc.php...

<form action="session.php" method="POST">
Enter ur name<input type="text" name="chk">
<input type="submit" value="submit" name="submit">
</form>

now code for session.php

<?php
echo $_POST['chk'];
?>

just take this as example and try to find error in ur code.....
and also post full code so that we can debug n find the error....

try to

//in submit form
print_r($_POST);

to see if you're post is empty or not.
try tomato suggestion, add the type of you're post if its submit,text,radio or whatever

is ur problem solved...if yes marked it solved...else motify what else u need.....

try to

//in submit form
print_r($_POST);

to see if you're post is empty or not.
try tomato suggestion, add the type of you're post if its submit,text,radio or whatever

Thanks for your reply.
The strage thing is that only a small part I ( see my first post) does not show if I do a print($_Post or var_dump($_POST);
So in short: 90% is OK.
Variables calculate in the form. No Problem.
Only posting that particular section does not work.

BY the way: Although the buttons do not show the label Submit but Return and Summary, they invoke the submit nonetheless.

Because the posting does not work I can't get the values in the database.

the source code u r writing musr be within the code tag....
and bt the way i saw ur form it is missing submit button....
to do it simple....i m posting an example to do it....
the code for abc.php...

<form action="session.php" method="POST">
Enter ur name<input type="text" name="chk">
<input type="submit" value="submit" name="submit">
</form>

now code for session.php

<?php
echo $_POST['chk'];
?>

]

the source code u r writing musr be within the code tag....
and bt the way i saw ur form it is missing submit button....
to do it simple....i m posting an example to do it....
the code for abc.php...

<form action="session.php" method="POST">
Enter ur name<input type="text" name="chk">
<input type="submit" value="submit" name="submit">
</form>

now code for session.php

<?php
echo $_POST['chk'];
?>

]

Thanks for your reply.
The buttons Return and Summary are invoking the submit.
If I do a var dump or do what you suggest, I get the undefined index message for the part of the form I decribed in my first post.
So without the value I can;'t get it into the database.
150 K p code is a bit much, I thought, so I put a link to the form in the post, so all code is available.
The crazy thing is that 95% of about 400 values are posted ok.
I have been looking for miss spelled variables but can't find a thing.

just take this as example and try to find error in ur code.....
and also post full code so that we can debug n find the error....[/QUOTE

Thank you all,

I rewrote the part of the page, whch caused the errors.
All is working now
Still don't know what caused the errors.
Thanks again for your help.

paste code in same form then $_POST[] will work

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.