Counting $_POST - php

I have a big form that contains X amount of posts that has 15 fields per post along with 1 hidden field.
Let's assume I have 14 posts. This means my form would send 211 fields (14x15 fields plus 1 hidden field).
The user does not have to fill in all fields.
I want to count the number of posts that the form sends but I seem to be running into difficulty.
Using count($_POST) returns 152. This leads me to believe that count() is ignoring empty fields.
As a result, using a formula such as (count($_POST) - 1) / 15 would return the wrong result (10.0666) and is inefficient should the number of fields change in the future.
So, does anyone have any ideas as to how to get the proper count of my posts?
My form looks like so:
<form name="scraped" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" method="post">
<input type="hidden" name="OSscraper_hidden" value="N">
<?php
$inpCnt = 0;
foreach($articles as $item) {
?>
<input type="text" name="title_<?php echo $inpCnt; ?>">
<input type="text" name="name_<?php echo $inpCnt; ?>">
<input type="text" name="url_<?php echo $inpCnt; ?>">
<input type="text" name="img_<?php echo $inpCnt; ?>">
<input type="text" name="pet_<?php echo $inpCnt; ?>">
<input type="text" name="color_<?php echo $inpCnt; ?>">
<input type="text" name="value_<?php echo $inpCnt; ?>">
<input type="text" name="height_<?php echo $inpCnt; ?>">
<input type="text" name="weight_<?php echo $inpCnt; ?>">
<input type="text" name="hair_<?php echo $inpCnt; ?>">
<input type="text" name="eyes_<?php echo $inpCnt; ?>">
<input type="text" name="race_<?php echo $inpCnt; ?>">
<input type="text" name="phone_<?php echo $inpCnt; ?>">
<input type="text" name="address_<?php echo $inpCnt; ?>">
<input type="text" name="zip_<?php echo $inpCnt; ?>">
<?php
$inpCnt++;
} ?>
<input type="submit" value="Submit">
</form>

Change your form to look like:
<input type="text" name="foo[<?php echo $inpCnt; ?>][title]">
<input type="text" name="foo[<?php echo $inpCnt; ?>][name]">
<input type="text" name="foo[<?php echo $inpCnt; ?>][url]">
Then you will get:
$_POST['foo'] = [
0 => ['title' => '...', 'name' => '...', 'url' => '...'],
1 => ...,
...
];
It saves you from having to do the grouping yourself, and is easier to count or iterate over the input.

why not just count($articles)*15 and echo into a hidden input. You are using another hidden input anyway....

Try this code, and demo is here
Please just use the idea not the exact copy.
<?php
error_reporting(E_ALL ^ E_NOTICE);
//debugging
if(#$_POST['submit'] == 'Submit'){
echo '<pre>';
print_r($_POST);
echo '</pre>';
echo "<br>\n";
echo 'Number of posts = count($_POST["posts"])='.count(#$_POST['posts'])."<br>\n";
//finding number of posts that are set and not empty
$count = 0;
foreach($_POST['posts'] as $v1){
//$v is an array
foreach($v1 as $v1k=> $v1v){
if(strlen($v1v) > 0){
++$count;
$inputs[$v1k] = $v1v;
}
}
}
echo 'Count of non-empty posts = $count = '.$count."<br>\n";
echo '<pre>';
print_r($inputs);
echo '</pre>';
}
?>
<form name="scraped" action="" method="post">
<input type="hidden" name="OSscraper_hidden" value="N">
<?php
$articles =array('test');
$inpCnt = 0;
foreach($articles as $item) {
?>
<input type="text" name="posts[][title_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][name_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][url_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][img_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][pet_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][color_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][value_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][height_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][weight_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][hair_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][eyes_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][race_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][phone_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][address_<?php echo $inpCnt; ?>]">
<input type="text" name="posts[][zip_<?php echo $inpCnt; ?>]">
<?php
$inpCnt++;
} ?>
<input type="submit" value="Submit" name="submit">
</form>

Related

Trying to make a shopping cart in php, form isnt defining indexes correctly

Just that, here's some of he code i use
<?php
include('lib_carrito.php');
session_start();
?>
<form action="mete_producto.php" method="POST">
<input type="hidden" name="producto" value="<?php echo $nombre ?>">
<input type="hidden" name="precio" value="<?php echo $precio ?>">
<input type="hidden" name="producto" value="<?php echo $Id ?>">
<?php
if ($stock == 0 || !(isset($_SESSION['usuario'])) || $_SESSION['autoridad'] == 1) {
echo "<input type='submit' class='disabled' value='Añadir al carrito'>";
}
else{
echo "<input type='submit' class='añadir' value='Añadir al carrito'>";
}
?>
<select name="cantidad" style="height:35px; font-size: 25px">
<?php
for ($i=1; $i <= $stock; $i++) {
echo "<option value='".$i."'>".$i."</option>";
}
?>
</select>
</form>
That's on the page with the item the customer would buy,
then this is mete_producto.php
<?php
include("lib_carrito.php");
require('config.php');
session_start();
$_SESSION['ocarrito']->introduce_producto($_REQUEST["Id"], $_REQUEST["Nombre"], $_REQUEST["Precio"], $_REQUEST['Cantidad']);
//header("Location:index.php");
?>
I have the header as a comment so it would show me the errors,
for all of them is the same error 'Undefined index: Id'
You haven't defined either Id or Nombre as name attributes to be sent with your form. You have, however, assigned two producto names which have corresponding PHP variables. I assume this is how you are intending to use these variables.
Instead of:
<input type="hidden" name="producto" value="<?php echo $nombre ?>">
<input type="hidden" name="precio" value="<?php echo $precio ?>">
<input type="hidden" name="producto" value="<?php echo $Id ?>">
You're looking for:
<input type="hidden" name="nombre" value="<?php echo $nombre ?>">
<input type="hidden" name="precio" value="<?php echo $precio ?>">
<input type="hidden" name="Id" value="<?php echo $Id ?>">

Value passing as null from view to controller

The id is passing correctly but the post value is returning as empty , Please suggest with a solution what mistake i am doing here
Here is my view
<?php for($i=0;$i<count($array['value']);$i++) { ?>
<?php $id= $room['value'][$i]['Index']; ?>
<ul >
<li>
<?php echo form_open('cont/arraylist/'.$id); ?>
<input type="hidden" name="<?php echo 'foo'.$i ?>" value="<?php echo $room['value'][$i]['foo']?>" />
<input type="hidden" name="<?php echo 'boo'.$i?>" value="<?php echo $room['value'][$i]['boo']?>" />
<input type="hidden" name="<?php echo 'bar'.$i?>" value="<?php echo $room['value'][$i]['bar']?>" />
<input type="hidden" name="<?php echo 'baba'.$i?>" value="<?php echo $room['value'][$i]['baba']?>" />
<input type="submit" />
<?php echo form_close(); ?>
</li>
</ul>
<?php } ?>
Here is My controller
function arraylist($id)
{
echo $id;
echo $this->input->post('foo'.$id);
echo $this->input->post('boo'.$id);
echo $this->input->post('bar'.$id);
echo $this->input->post('baba'.$id);
}
You are trying get the input name 'foo'.$id but in view you are concatenating 'foo'.$i. This occurs to all. Do this:
<input type="hidden" name="<?php echo 'foo'.$id ?>" value="<?php echo $room['value'][$i]['foo']?>" />
<input type="hidden" name="<?php echo 'boo'.$id?>" value="<?php echo $room['value'][$i]['boo']?>" />
<input type="hidden" name="<?php echo 'bar'.$id?>" value="<?php echo $room['value'][$i]['bar']?>" />
<input type="hidden" name="<?php echo 'baba'.$id?>" value="<?php echo $room['value'][$i]['baba']?>" />

Display field from different table in a input form

How would I display student.Student instead of student_id
<?php
for ($i = 0; $i < $chkcount; $i++) {
$id = $chk[$i];
$res = $MySQLiconn->query("SELECT Student.ID, student.Student, student.School,student.PR, Jumps.dis_ft_1, Jumps.dis_in_1, Jumps.dis_ft_2, Jumps.dis_in_2, Jumps.dis_ft_3, Jumps.dis_in_3, Jumps.dis_ft_4, Jumps.dis_in_4, Jumps.dis_ft_5, Jumps.dis_in_5, Jumps.dis_ft_6, Jumps.dis_in_6
FROM Student LEFT JOIN Jumps ON Student.ID = Jumps.student_id WHERE ID=" . $id);
while ($row = $res->fetch_array()) {
?>
<tr>
<td>
<input type="hidden" name="id[]" value="<?php echo $row['ID']; ?>"/>
Student ID: <input type="text" name="st[]" value="<?php echo $row['student_id']; ?>"
class="form-control"/>
Attempt 1 <input type="text" name="df1[]" value="<?php echo $row['dis_ft_1']; ?>"
class="form-control"/>
<input type="text" name="di1[]" value="<?php echo $row['dis_in_1']; ?>"
class="form-control"/>
Attempt 2 <input type="text" name="df2[]" value="<?php echo $row['dis_ft_2']; ?>"
class="form-control"/>
<input type="text" name="di2[]" value="<?php echo $row['dis_in_2']; ?>"
class="form-control"/>
Attemp 3 <input type="text" name="df3[]" value="<?php echo $row['dis_ft_3']; ?>"
class="form-control"/>
<input type="text" name="di3[]" value="<?php echo $row['dis_in_3']; ?>"
class="form-control"/>
Attempt 4 <input type="text" name="df4[]" value="<?php echo $row['dis_ft_4']; ?>"
class="form-control"/>
<input type="text" name="di4[]" value="<?php echo $row['dis_in_4']; ?>"
class="form-control"/>
Attempt 5 <input type="text" name="df5[]" value="<?php echo $row['dis_ft_5']; ?>"
class="form-control"/>
<input type="text" name="di5[]" value="<?php echo $row['dis_in_5']; ?>"
class="form-control"/>
Attempt 6 <input type="text" name="df6[]" value="<?php echo $row['dis_ft_6']; ?>"
class="form-control"/>
<input type="text" name="di6[]" value="<?php echo $row['dis_in_6']; ?>"
class="form-control"/>
</td>
</tr>
<?php
}
}
?>
Not sure it can be done. But Student name would be better than student id.
Wouldn't post with more text so just typing so it will post.
I am learning PHP.
If there is only one field called Student i.e Student.Student, then you could just output the name <?php echo $row['Student']; ?>.
However, if there are ever name clashes, you can always give the field a new name for PHP to access.
SELECT Student.ID, Student.Student AS some_new_name FROM ....
<?php echo $row['some_new_name']; ?>

how to post selected check box with each text box value

i want insert post text box values of each selected check boxes to the database.
<input type="checkbox" name="email[]" value="<?php echo $actions_to_be[$z]['student_email'] ?>" />
<input type="text" name="timetable_id[]" value="<?php echo $actions_to_be[$z]['timetable_id'] ?>" size="10px"/>
<input type="text" name="sid[]" value="<?php echo $actions_to_be[$z]['sid'] ?>" size="10px" />
<input type="checkbox" name="email[]" value="<?php echo $i; ?>" />
<input type="text" name="timetable_id[<?php echo $i; ?>]" value="<?php echo $actions_to_be[$z]['timetable_id'] ?>" size="10px"/>
<input type="text" name="sid[<?php echo $i; ?>]" value="<?php echo $actions_to_be[$z]['sid'] ?>" size="10px" />
$i should be increased for every box of course. Then you can simply take the ids from the $_POST['email'] array (possibly rename it to something more meaningful though) and retrieve the values in $_POST['timetable_id'][$id] and $_POST['sid'][$id].

multiple form redirect only on first form's action

I have used multiple form in single page bcz i have to work my page without javascript enable in my browser..but problem is that all form redirect on single page..i.e all forms goes to first forms's action..if u can change 1st form action then all form goes to that link...i know there is silly mistake but i failed to figure it out..plz help me...thnks in advance..
//html code
<div id="propertymenu">
<table cellspacing="20">
<tr>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="mainainancebills.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="PROPERTY DETAILS">
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="inspectionreport.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="INSPECTION REPORTS">
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="downloaddocument.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="DOWNLOAD DOCUMENTS">
</font>
</td>
</tr>
<tr>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="downloaddocument.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="STATEMENT OF ACCOUNT">
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="electricitybills.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="ELECTICITY BILLS">
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="downloaddocument.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="OTHERS">
</font></td>
</tr>
<tr>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="expensestracker.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="DETAIL OF EXPENSES">
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="mainainancebills.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="MAINTENANCE BILLS">
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="ownerhome.php">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="submit" value="BACK">
</form></td>
</tr>
</table>
</div>
You have
</font>
instead of
</form>
in there a bit.
Some thing is wrong in this code. because for every form there is not ending form is wriiten meant form is not close at every form start.
Your right code is
<div id="propertymenu">
<table cellspacing="20">
<tr>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="mainainancebills.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="PROPERTY DETAILS">
</form>
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="inspectionreport.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="INSPECTION REPORTS">
</form>
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="downloaddocument.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="DOWNLOAD DOCUMENTS">
</form>
</font>
</td>
</tr>
<tr>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="downloaddocument.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="STATEMENT OF ACCOUNT">
</form>
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="electricitybills.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="ELECTICITY BILLS">
</form>
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="downloaddocument.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="OTHERS">
</form>
</font></td>
</tr>
<tr>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="expensestracker.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="DETAIL OF EXPENSES">
</form>
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="mainainancebills.php">
<input type="hidden" value="<?PHP echo $buildname; ?>" name="bn">
<input type="hidden" value="<?PHP echo $flatno; ?>" name="fn">
<input type="hidden" value="<?PHP echo $area; ?>" name="area">
<input type="hidden" value="<?PHP echo $pincode; ?>" name="pc">
<input type="hidden" value="<?PHP echo $owner; ?>" name="owner">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="hidden" value="<?PHP echo $fullname; ?>" name="fname">
<input type="hidden" value="<?PHP echo $email; ?>" name="email">
<input type="submit" value="MAINTENANCE BILLS">
</form>
</font></td>
<td style="background-color:#94EEF2;">
<form method="post" class='propertylist' action="ownerhome.php">
<input type="hidden" value="<?PHP echo $property; ?>" name="pid">
<input type="submit" value="BACK">
</form></td>
</tr>
</table>
</div>
Please close form 1 by 1
<form name="Your_firstform">
//Your code here
</form>
<form name="Your_secondform">
//Your code here
</form>
<form name="Your_thirdform">
//Your code here
</form>

Categories