File: /home/SimranTrikha/bwebz.com/web/form2.php
<?php
if(isset($_POST['submit1']))
{
if($_POST['client1']=="")
{
}
else
{
$img=$_POST['img1'];
$client=$_POST['client1'];
date_default_timezone_set('Asia/Kolkata');
$date1=date('Ymd', strtotime(' -1 day'));
$date=date("Ymd");
$time=date("his");
if(is_dir('form-images/'.$date1))
{
rmdir('form-images/'.$date1);
}
if(is_dir('form-images/'.$date))
{
}
else
{
mkdir('form-images/'.$date);
}
header("Content-type: image/jpeg");
$imgPath = $img;
$image = imagecreatefromjpeg($imgPath);
$color = imagecolorallocate($image, 255, 0, 0);
$string = $client;
$fontSize = 25;
$x = 265;
$y = 110;
imagestring($image, $fontSize, $x, $y, $string, $color);
imagejpeg($image,'form-images/'.$date.'/'.$date.$time.'-'.$client.'.jpg');
header("location: form-images/".$date."/".$date.$time."-".$client.".jpg");
}
}
if(isset($_POST['submit2']))
{
if($_POST['client2']=="")
{
}
else
{
$img=$_POST['img2'];
$client=$_POST['client2'];
date_default_timezone_set('Asia/Kolkata');
$date1=date('Ymd', strtotime(' -1 day'));
$date=date("Ymd");
$time=date("his");
if(is_dir('form-images/'.$date1))
{
rmdir('form-images/'.$date1);
}
if(is_dir('form-images/'.$date))
{
}
else
{
mkdir('form-images/'.$date);
}
header("Content-type: image/jpeg");
$imgPath = $img;
$image = imagecreatefromjpeg($imgPath);
$color = imagecolorallocate($image, 255, 0, 0);
$string = $client;
$fontSize = 25;
$x = 245;
$y = 67;
imagestring($image, $fontSize, $x, $y, $string, $color);
imagejpeg($image,'form-images/'.$date.'/'.$date.$time.'-'.$client.'.jpg');
header("location: form-images/".$date."/".$date.$time."-".$client.".jpg");
}
}
if(isset($_POST['submit3']))
{
if($_POST['client3']=="")
{
}
else
{
$img=$_POST['img3'];
$client=$_POST['client3'];
date_default_timezone_set('Asia/Kolkata');
$date1=date('Ymd', strtotime(' -1 day'));
$date=date("Ymd");
$time=date("his");
if(is_dir('form-images/'.$date1))
{
rmdir('form-images/'.$date1);
}
if(is_dir('form-images/'.$date))
{
}
else
{
mkdir('form-images/'.$date);
}
header("Content-type: image/jpeg");
$imgPath = $img;
$image = imagecreatefromjpeg($imgPath);
$color = imagecolorallocate($image, 255, 0, 0);
$string = $client;
$fontSize = 25;
$x = 110;
$y = 39;
imagestring($image, $fontSize, $x, $y, $string, $color);
imagejpeg($image,'form-images/'.$date.'/'.$date.$time.'-'.$client.'.jpg');
header("location: form-images/".$date."/".$date.$time."-".$client.".jpg");
}
}
if(isset($_POST['submit4']))
{
if($_POST['client4']=="")
{
}
else
{
$img=$_POST['img4'];
$client=$_POST['client4'];
date_default_timezone_set('Asia/Kolkata');
$date1=date('Ymd', strtotime(' -1 day'));
$date=date("Ymd");
$time=date("his");
if(is_dir('form-images/'.$date1))
{
rmdir('form-images/'.$date1);
}
if(is_dir('form-images/'.$date))
{
}
else
{
mkdir('form-images/'.$date);
}
header("Content-type: image/jpeg");
$imgPath = $img;
$image = imagecreatefromjpeg($imgPath);
$color = imagecolorallocate($image, 255, 0, 0);
$string = $client;
$fontSize = 25;
$x = 230;
$y = 252;
imagestring($image, $fontSize, $x, $y, $string, $color);
imagejpeg($image,'form-images/'.$date.'/'.$date.$time.'-'.$client.'.jpg');
header("location: form-images/".$date."/".$date.$time."-".$client.".jpg");
}
}
?>
<!DOCTYPE html><html dir="rtl" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Thank You For Booking Here</title>
<meta name="author" content="Bwebz Company">
<meta name="description" content="Website Development and Website Designing">
<meta name="keywords" content="Website Development and Website Designing. ">
<link rel="icon" href="favicon.png" type="image/png">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/jquery-ui.min.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/fontawesome-stars-o.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/responsive-style.css">
<link rel="stylesheet" href="css/colors/theme-color-1.css" id="changeColorScheme">
<link rel="stylesheet" href="css/font-awesome-rtl.css" id="changeColorScheme">
<link rel="stylesheet" href="css/bootstrap-rtl.min.css" id="changeColorScheme">
<link rel="stylesheet" href="css/rtl-style.css" id="changeColorScheme">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="css/form.css">
</head>
<body>
<br>
<center>
<div class="plane">
<div class="table">
<form action="#" enctype="method/form-data" method="post">
<table style="margin-left:-190px;">
<tr><td><input type="submit" value="Submit" name="submit1" style="margin-top:100px;"></td>
<td> </td>
<td>
<input type="hidden" name="img1" value="images/form2-plane.jpg">
<input type="text" placeholder="Client Name" name="client1" style="text-align:left; margin-top:100px; color:red; font-size:20px; padding-top:4px; font-weight:bold;" required></td></tr>
</table>
</form>
</div>
</div>
</center>
<br>
<center>
<div class="bus">
<div class="table">
<form action="#" enctype="method/form-data" method="post">
<table style="margin-left:-340px;">
<tr><td><input type="submit" name="submit2" value="Submit" style="margin-top:125px;"></td>
<td> </td>
<td>
<input type="hidden" name="img2" value="images/form2-busbooking.jpg">
<input type="text" placeholder="Client Name" name="client2" style="text-align:left; margin-top:125px; color:red; font-size:20px; padding-top:4px; font-weight:bold;" required></td></tr>
</table>
</form>
</div>
</div>
</center>
<br>
<center>
<div class="train">
<div class="table">
<form action="#" enctype="method/form-data" method="post">
<table style="margin-left:-645px;">
<tr><td><input type="submit" value="Submit" name="submit3" style="margin-top:326px;"></td>
<td> </td>
<td>
<input type="hidden" name="img3" value="images/form2-train.jpg">
<input type="text" placeholder="Client Name" name="client3" style="text-align:left; margin-top:326px; color:red; font-size:20px; padding-top:4px; font-weight:bold;" required></td></tr>
</table>
</form>
</div>
</div>
</center>
<br>
<center>
<div class="hotel">
<div class="table">
<form action="#" enctype="method/form-data" method="post">
<table style="margin-left:460px;">
<tr><td><input type="submit" value="Submit" name="submit4" style="margin-top:183px;"></td>
<td> </td>
<td>
<input type="hidden" name="img4" value="images/form2-hotel.jpg">
<input type="text" placeholder="Client Name" name="client4" style="text-align:left; margin-top:183px; color:red; font-size:20px; padding-top:4px; font-weight:bold;" required></td></tr>
</table>
</form>
</div>
</div>
</center>
<!-- <div class="wrapper">
<section class="page--content--section pt--80 pb--20">
<center><div class="container" style="background-image:url('images/planebooking.jpg'); background-repeat: no-repeat; height:538px; ">
<form style="float:left;" action="http://www.bwebz.com/form2.php" method="post" enctype="multipart-form/data">
<table style="margin-top:140px; margin-left:110px;">
<tr><td><input type="submit" value="SUBMIT" name="submit"> </td> <td><input type="text" required placeholder="Client Name" style="color:#fd5401; font-weight:bold; font-size:30px; font-style:'Times New Roman';border:0px; text-align:left;"></td></tr>
<tr><td> </td></tr>
</table>
</form>
<div class="row row--vc-md" >
<div class="col-md-5 col-sm-6 pb--60" >
<!--<div class="page--content-img" >
<img src="images/about.png" alt=""> </div>
</div>
</div></div></center></section>
</div>
-->
<div id="backToTop"> <a href="#" class="btn btn-lg btn-default active"><i class="fa fa-chevron-up"></i></a> </div>
<script src="ajax.cloudflare.com/cdn-cgi/scripts/78d64697/cloudflare-static/email-decode.min.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.ui.touch-punch.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.sticky.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/isotope.min.js"></script>
<script src="js/jquery.zoom.min.js"></script>
<script src="js/jquery.barrating.min.js"></script>
<script src="js/scrollreveal.min.js"></script>
<script src="js/retina.min.js"></script>
<script src="#"></script> <script src="js/main.js"></script>
</body>
</html>