showing undifined index while uploading file - php

I have an error saying:
undefined index while uploading picture .
all other fields are getting but file type is not setting.
code below is page 1 where I posting the image
<form name="adduser" id="adduser" class="form-horizontal form-bordered" action="{$ROOT_OBJECT}/addpointtypetodo/save" enctype="multipart/form-data">
<div class="form-group">
<label class="col-sm-2 control-label">Point Type Tittle*</label>
<div class="col-sm-4">
<input type="text" class="form-control" placeholder="Name" name="addPointTypeTittle" id="addPointTypeTittle" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Point Type Subtitle*</label>
<div class="col-sm-4">
<input type="text" class="form-control" placeholder="Name" name="addPointTypeSubtitle" id="addPointTypeSubtitle" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Point Type Parse Tagline*</label>
<div class="col-sm-4">
<input type="text" class="form-control" placeholder="Name" name="addPointTypeTagline" id="addPointTypeTagline" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Point Type Icon URL</label>
<div class="col-sm-4">
<input type="file" class="form-control" placeholder="select file.." id="addPointTypeIcon" name="addPointTypeIcon">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Point Type Marker URL</label>
<div class="col-sm-4">
<input type="file" class="form-control" placeholder="select file.." id="addPointTypeMarker" name="addPointTypeMarker">
</div>
</div>
<div class="form-group">
<div class="col-sm-4">
<input type="submit" class="btn btn-primary" name="addPointTypeSubmit" id="addPointTypeSubmit" value="Save">
</div>
</div>
</form>
and this is the page getting this image:
$uploadedFile = $_FILES['addPointTypeIcon']['tmp_name'];
$pointTypeIcon = 'images/category/' . $_FILES['addPointTypeIcon']['name'];
if (is_uploaded_file($uploadedFile))
{
$this->model->fields = array();
move_uploaded_file($uploadedFile, $pointTypeIcon);
array_push($this->model->fields, $pointTypeIndex);
array_push($this->model->fields, $pointTypeIcon);
$this->model->saveIcon();
}
// }
// if(isset($_FILES['addPointTypeMarker']))
// {
$uploadedFile = $_FILES['addPointTypeIcon']['tmp_name'];
$pointTypeIcon = 'images/marker/' . $_FILES['addPointTypeMarker']['name'];
if (is_uploaded_file($uploadedFile))
{
$this->model->fields = array();
move_uploaded_file($uploadedFile, $pointTypeIcon);
array_push($this->model->fields, $pointTypeIndex);
array_push($this->model->fields, $pointTypeIcon);
$this->model->saveMarker();
}
It saying images not set.
please help.

You have to specify the post method on the form
<form name="adduser" id="adduser" method="post" class="form-horizontal form-bordered" action="{$ROOT_OBJECT}/addpointtypetodo/save" enctype="multipart/form-data">
Files cannot be uploaded to PHP using the GET method, which is the default method for submitting forms.
Relevant W3 Spec

Related

What might the issue with this my code to upload image in my users form

I created a form to capture user details including their passport, but when ever the user fill the form, it went blank without populating the database with the filled data, but the image will be moved to specified directory. How do correct the error so that the data and the image path will be populated into the database.
if(isset($_POST['submit']))
{
$name=$_POST['name'];
$image = $_FILES['image']['name'];
$regno=$_POST['regno'];
$email=$_POST['email'];
$password=$_POST['password'];
$status=1;
// image file directory
$target = "images/".basename($image);
move_uploaded_file($_FILES['image']['tmp_name'], $target);
$sql="INSERT INTO tblstudents(name,image,regno,email,password,status) VALUES(:name,:image,:regno,:email,:password, :status)";
$query = $dbh->prepare($sql);
$query->bindParam(':name',$name,PDO::PARAM_STR);
$query->bindParam(':image',$_image,PDO::PARAM_STR);
$query->bindParam(':regno',$regno,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$Id = $dbh->Id();
if($Id)
{
$msg="user added successfully";
}
elseif (move_uploaded_file($_FILES['image']['tmp_name'], $target)) {
$msg = "Image uploaded successfully";
}else
{
$error="Something went wrong. Please try again";
}
}
?>
Here is my html form
<form class="form-horizontal" method="post" enctype="multipart/form-data">
<!-- image file enctype="multipart/form-data" -->
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Full Name</label>
<div class="col-sm-10">
<input type="text" name="name" class="form-control" id="name" required="required" autocomplete="off">
</div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Registration Number</label>
<div class="col-sm-10">
<input type="text" name="regno" class="form-control" id="regno" maxlength="50" required="required" autocomplete="off">
</div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Email Address</label>
<div class="col-sm-10">
<input type="email" name="email" class="form-control" id="email" required="required" autocomplete="off">
</div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" name="password" class="form-control" id="password" required="required" autocomplete="off">
</div>
</div>
<!-- passport to upload -->
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Upload Passport</label>
<div class="col-sm-10">
<input type="file" name="image" id="image">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>

How to save data and print form at one click in php?

I am working on invoice where I have to save form's data in database and at the same time it should be print. So, I have 3 pages: invoice.php, invoice_print.php and insert_data.php
invoice_print.php is a html form that should be printed.
Now, user will go to first invoice.php then he will fill details and either he will click on submit button to save data in db or else he will click on print button to print that invoice.
Now, lets come to the second part: If user will select print button then data will go to database first and then it will go to invoice_print.php with same data that he filled.
How to do this? What logic should I use to save data and capture that data's id in button and then send that id on another page to display?
invoice.php:
<form id="demo-form2" action="insert_data.php" method="post" data-parsley-validate class="form-horizontal form-label-left">
<div class="col-md-12 form-group">
<div class="col-md-6">
<label class="control-label">Location</label>
</div>
<div class="col-md-6">
<input class="form-control" type="text" value="" name="designation">
</div>
</div>
<div class="col-md-12 form-group">
<div class="col-md-6">
<label class="control-label">Address</label>
</div>
<div class="col-md-6">
<input class="form-control" type="text" value="" name="contact">
</div>
</div>
</form>
invoice_print.php:
<div class="col-md-12">
<div class="col-md-6">
<h2>DIGILIFE BIZCARE SOLUTIONS</h2>
<p>414, Vashi Infotech Park,Maharashtra</p>
</div>
<div class="col-md-6">
<h2>BILL OF SUPPLY</h2>
</div>
</div>
<div class="col-md-12">
<div class="col-md-6">
<div class="col-md-12">
<div class="col-md-6">
<label>GSTIN</label>
<input type="text" name="gstin" value="">
<label>Serial No & Date of Invoice</label>
<input type="text" name="serialNo">
</div>
<div class="col-md-6">
</div>
</div>
</div>
<div class="col-md-6">
<div class="col-md-12">
<div class="col-md-6">
<label>Mode of Transport</label><br>
<label>Vehicle No</label><br>
<label>Date & Time of Supply</label><br>
<label>Place Of Supply</label>
</div>
<div class="col-md-6s">
<input type="text" name="">
<input type="text" name="">
<input type="text" name="">
<input type="text" name="">
</div>
</div>
</div>
</div>
<div class="col-md-12 form-group">
<div class="col-md-6">
<label class="control-label">Location</label>
</div>
<div class="col-md-6">
<input class="form-control" type="text" value="" name="designation">
</div>
</div>
<div class="col-md-12 form-group">
<div class="col-md-6">
<label class="control-label">Address</label>
</div>
<div class="col-md-6">
<input class="form-control" type="text" value="" name="contact">
</div>
</div>
I would put all of the code for a form into one file, structured thus:
<?php
$formDone=!empty($_POST['formDone']);
$printReq=!empty($_POST['printReq']);
if ($formDone)
{
// perform validation
}
if ($formDone && $validationPassed)
{
// write to database using $_POST data
}
if ($formDone && $databaseWriteSuccess && $printReq)
{
// print using $_POST data
}
// end of PHP
?>
<form method="post" action="<?php echo $PHP_SELF ?>">
<fieldset>
<input type="hidden" name="formDone" value="1" />
</fieldset>
<!-- field forms -->
<input type="submit" value="Save to db" />
<input type="submit" name="printReq" value="Print Invoice" />
</form>

How do I enable folders on my computer to allow php to move files into them?

So, I am trying to upload files using PHP into a folder, however, the images are not appearing. There are no error messages. I would think an error would appear to tell me they were unable to be uploaded.
<?php
if (isset($_POST['postsubmit'])) {
$postTitle = trim($_POST['posttitle']);
$postAuth = trim($_POST['postauthor']);
$postStat = trim($_POST['poststatus']);
$post_image = $_FILES['image']['name'];
$post_image_temp = $_FILES['image']['tmp_name'];
$postTags = trim($_POST['posttags']);
$postDate = date('y-m-d');
$postContent = trim($_POST['postcontent']);
$postComCount = 4;
move_uploaded_file($post_image_temp, "../images/$post_image");
}
?>
<h1>Add New Post</h1>
<div class="col-xs-6">
<form action="" method="POST" enctype="multipart/form-data">
<div class="form-group">
<label for="posttitle">Post Title</label>
<input type="text" name="posttitle" id="posttitle" class="form-control" maxlength="99"/>
</div>
<div class="form-group">
<label for="postauthor">Post Author</label>
<input type="text" name="postauthor" id="postauthor" class="form-control" maxlength="25"/>
</div>
<div class="form-group">
<label for="postauthor">Post Status</label>
<input type="text" name="poststatus" id="poststatus" class="form-control" maxlength="25"/>
</div>
<div class="form-group">
<label for="postauthor">Post Image</label>
<input type="file" name="image" id="image" class="form-control"/>
</div>
<div class="form-group">
<label for="postauthor">Post Tags</label>
<input type="text" name="posttags" id="posttags" class="form-control" maxlength="25"/>
</div>
<div class="form-group">
<label for="postcontent">Post Content</label>
<textarea type="text" name="postcontent" id="postcontent" class="form-control" rows="15" maxlength="10000"></textarea>
</div>
<button class="btn btn-primary" value="submit" name="postsubmit">Submit Post</button>
</form>
</div>
Try changing
move_uploaded_file($post_image_temp, "../images/$post_image");
to
move_uploaded_file($post_image_temp, "../images/".$post_image);
It is because you are just passing a string $post_image rather than the variable itself
Add error reporting to debug, something like this:
if (! move_uploaded_file($post_image_temp, "../images/$post_image") ) {
echo 'move failed: ';
print_r(error_get_last());
}

How to send data to database using form tag?

I can send data to database but using tag. I want to use tag so that the validation in my page will show like "please enter a valid email-address", "password do not match" and many more.
The problem is when I use tag it shows no validation but the data send to db.
But if use tag it shows the validation, but the data is not entering into db.
Here is the view code:
<div class="form-horizontal" id="block-validate">
<?php echo form_open(base_url("index.php/main/editClass"));?>
<div class="form-group">
<label class="control-label col-lg-2"><b>
Course Code-Section
</b></label>
<div class="col-lg-4">
<input class="form-control" name="ccs" type="text" value="<?php echo $Course_Code_Section;?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2"><b>
Course Description
</b></label>
<div class="col-lg-4">
<input class="form-control" name="des" type="text" value="<?php echo $Description;?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2"><b>
School Year-Semester
</b></label>
<div class="col-lg-4">
<input class="form-control" name="sys" type="text" value="<?php echo $School_Year_Semester;?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2"><b>
Room
</b></label>
<div class="col-lg-4">
<input class="form-control" name="rm" type="text" value="<?php echo $Room;?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2"><b>
Day-Time
</b></label>
<div class="col-lg-4">
<input class="form-control" name="dt" type="text" value="<?php echo $Day_Time;?>">
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2"><b>
Student
</b></label>
<div class="col-lg-4">
<input class="form-control" name="stu" type="text" value="<?php echo $Student;?>">
</div>
</div>
<div class="form-actions">
<input type="hidden" name="id" value="<?php echo $CID;?>">
<label class="control-label col-lg-2"></label>
<button type="submit" class="btn btn-primary btn-grad btn-rect">Submit</button>
Cancel
</div>
<?php echo form_close();?>
</div>
Here is the code that I am changing:
<div class="form-horizontal" id="block-validate">
And I changed it to:
<form class="form-horizontal" id="block-validate">
When I use the form tag, the url shows this:
http://localhost/ams/index.php/main/showEditClassView?ccs=CPE+506-CPE42FA1&des=Software+Engineering&sys=SY+2016-2017+2nd+Sem&rm=A-225&dt=Saturday-07%3A30+AM-12%3A30+PM&stu=Ronnel+Gonzales&id=1
What if you modify:
<div class="form-horizontal" id="block-validate">
<?php echo form_open(base_url("index.php/main/editClass"));?>
to:
<div class="form-horizontal">
<?php echo form_open(base_url("index.php/main/editClass"), 'id="block-validate"');?>
So that Codeigniter opens the form tag for you, but we use id="block-validate" so your validation can run?
Use method="POST" if you do not want to appear the values in the url.Hope this will sort your problem.
<form class="form-horizontal" id="block-validate" method="POST">

Upload file and access $_FILES

I'm trying to upload a file on some directory. The directory is recorded in the database. However, the code cannot read $_FILES i get null value everytime i try to upload files,. but the other input data are recorded to the database,. what happen is I cannot record the name of the file in the database its just blank.
if(isset($_POST['btn-upload'])){
$record_title = $_POST['record_title'];
$record_recieved_date_time = $_POST['record_recieved_date_time'];
$record_checked_date_time = $_POST['record_checked_date_time'];
$record_approved_date_time = $_POST['record_approved_date_time'];
$record_status = $_POST['record_status'];
$record_remarks = $_POST['record_remarks'];
$record_type = $_POST['record_type'];
$file = $_FILES['file']['name'];
$sql = "INSERT INTO records (record_id , record_title , record_recieved_date_time , record_checked_date_time , record_approved_date_time , record_status ,record_remarks , file , record_type)
VALUES (NULL, '$record_title' , '$record_recieved_date_time','$record_checked_date_time','$record_approved_date_time' , '$record_status ' , '$record_remarks' , '$file' , '1')";
if (mysqli_query($dbconfig, $sql)) {
header('Location:memberAWP.php');
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($dbconfig);
}
}
here is the Form, im using modal with the help of bootstrap
<form method="post" action="" enctype="multipart/form-data name="loginform" class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="record_title"> TITLE </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_title" name = "record_title" placeholder="Enter Title">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_recieved_date_time"> RECIEVED DATE / TIME </label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_recieved_date_time" name = "record_recieved_date_time" placeholder="Enter RECIEVED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_checked_date_time"> CHECKED DATE / TIME </label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_checked_date_time" name = "record_checked_date_time" placeholder="Enter CHECKED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_approved_date_time"> APPROVED DATE / TIME</label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_approved_date_time" name = "record_approved_date_time" placeholder="Enter APPROVED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_status"> STATUS </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_status" name = "record_status" placeholder="Enter STATUS">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_remarks"> REMARKS </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_remarks" name = "record_remarks" placeholder="Enter REMARKS">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="file"> ATTACHMENTS </label>
<div class="col-sm-10">
<input type="file" class="form-control" id="file" name="file" placeholder="Enter ATTACHMENTS">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="submit" value="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
if( isset( $_POST['btn-upload'], $_FILES['file'] ) ){
/*
The sql is vulnerable to sql injection as you directly embed variables within the sql
rather than using `prepared statements` so some extra care ought to be taken with the supplied
data, perhaps use:
filter_input( INPUT_POST, 'record_title', FILTER_SANITIZE_STRING );
*/
$record_title = $_POST['record_title'];
$record_recieved_date_time = $_POST['record_recieved_date_time'];
$record_checked_date_time = $_POST['record_checked_date_time'];
$record_approved_date_time = $_POST['record_approved_date_time'];
$record_status = $_POST['record_status'];
$record_remarks = $_POST['record_remarks'];
$record_type = $_POST['record_type'];
/*
Access the uploaded file as an object for simplicity
and use the values for saving the file etc
*/
$obj=(object)$_FILES['file'];
$file = $obj->name;
$size = $obj->size;
$tmp = $obj->tmp_name;
$type = $obj->type;
$error= $obj->error;
if( is_uploaded_file( $tmp ) && $error == UPLOAD_ERR_OK ){
/* determine the location the file should be saved to */
$destination = '/path/to/folder/' . $file;
/* Save the file */
$result = move_uploaded_file( $tmp, $destination );
/* Proceed with the sql command if the file was saved OK */
if( $result ){
$sql = "INSERT INTO records ( `record_title`, `record_recieved_date_time`, `record_checked_date_time`, `record_approved_date_time`, `record_status`, `record_remarks`, `file`, `record_type`)
VALUES ( '$record_title', '$record_recieved_date_time', '$record_checked_date_time', '$record_approved_date_time', '$record_status', '$record_remarks', '$file', '1' )";
$result = mysqli_query( $dbconfig, $sql );
if( $result )header('Location:memberAWP.php');
else echo "Error: " . $sql . "<br>" . mysqli_error($dbconfig);
}
}
}
As was pointed out in a comment, ensure that the form has the correct enctype attribute set - for file uploads it should be enctype='multipart/form-data'
Unless you use the move_uploaded_file() function the file will remain in the tmp directory for a limited time before garbage collection removes it and the reference to the file ( in the db ) will no longer be valid.
There are some basics thing you should know when working on file uploading.
1) You should define encryption type in your form for example
<form action="demo_post_enctype.asp" method="post" enctype="multipart/form-data">
2) Next you must use move_uploaded_file(source,destination) function in order to upload your file.
<form method="post" enctype="multipart/form-data" name="loginform" class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="record_title"> TITLE </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_title" name = "record_title" placeholder="Enter Title">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_recieved_date_time"> RECIEVED DATE / TIME </label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_recieved_date_time" name = "record_recieved_date_time" placeholder="Enter RECIEVED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_checked_date_time"> CHECKED DATE / TIME </label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_checked_date_time" name = "record_checked_date_time" placeholder="Enter CHECKED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_approved_date_time"> APPROVED DATE / TIME</label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_approved_date_time" name = "record_approved_date_time" placeholder="Enter APPROVED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_status"> STATUS </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_status" name = "record_status" placeholder="Enter STATUS">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_remarks"> REMARKS </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_remarks" name = "record_remarks" placeholder="Enter REMARKS">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="file"> ATTACHMENTS </label>
<div class="col-sm-10">
<input type="file" class="form-control" id="file" name="file" placeholder="Enter ATTACHMENTS">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="btn-upload" value="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
change html code after try this code
if(isset($_POST['btn-upload']))
{
$record_title = $_POST['record_title'];
$record_recieved_date_time = $_POST['record_recieved_date_time'];
$record_checked_date_time = $_POST['record_checked_date_time'];
$record_approved_date_time = $_POST['record_approved_date_time'];
$record_status = $_POST['record_status'];
$record_remarks = $_POST['record_remarks'];
// $record_type = $_POST['record_type'];
$file = $_FILES['file']['name'];
//echo $fileName= $_FILES["file"]["name"];
echo $sql = "INSERT INTO records (record_id , record_title , record_recieved_date_time , record_checked_date_time , record_approved_date_time , record_status ,record_remarks , file , record_type)
VALUES (NULL, '$record_title' , '$record_recieved_date_time','$record_checked_date_time','$record_approved_date_time' , '$record_status ' , '$record_remarks' , '$file' , '1')";
if (mysqli_query($dbconfig, $sql)) {
header('Location:memberAWP.php');
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($dbconfig);
}
}
try this code
First of go to your project folder and create a new folder with the name of "uploads". the try the following code. if file upload get successfully done you can write your query in the IF block where we used echo for success. but first try this. i hope it works for you.
<?php
if(isset($_POST['submit'])){
$record_title = $_POST['record_title'];
$record_recieved_date_time = $_POST['record_recieved_date_time'];
$record_checked_date_time = $_POST['record_checked_date_time'];
$record_approved_date_time = $_POST['record_approved_date_time'];
$record_status = $_POST['record_status'];
$record_remarks = $_POST['record_remarks'];
$record_type = $_POST['record_type'];
$file = $_FILES['file']['name'];
$target_dir = "uploads/";
$path = $target_dir.$file;
$tmp = $_FILES['file']['tmp_name'];
if(move_uploaded_file($tmp,$path))
{
echo "File successfully uploaded";
}
else
echo "file did not upload";
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form method="post" action="" enctype="multipart/form-data" name="loginform" class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="record_title"> TITLE </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_title" name = "record_title" placeholder="Enter Title">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_recieved_date_time"> RECIEVED DATE / TIME </label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_recieved_date_time" name = "record_recieved_date_time" placeholder="Enter RECIEVED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_checked_date_time"> CHECKED DATE / TIME </label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_checked_date_time" name = "record_checked_date_time" placeholder="Enter CHECKED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_approved_date_time"> APPROVED DATE / TIME</label>
<div class="col-sm-10">
<input type="datetime-local" class="form-control" id="record_approved_date_time" name = "record_approved_date_time" placeholder="Enter APPROVED DATE / TIME">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_status"> STATUS </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_status" name = "record_status" placeholder="Enter STATUS">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="record_remarks"> REMARKS </label>
<div class="col-sm-10">
<input type="text" class="form-control" id="record_remarks" name = "record_remarks" placeholder="Enter REMARKS">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="file"> ATTACHMENTS </label>
<div class="col-sm-10">
<input type="file" class="form-control" id="file" name="file" placeholder="Enter ATTACHMENTS">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="submit" value="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</body>
</html>

Categories