File manager - Edit - /home/justdoit/portal.buildprosconnect.com/createvessel.php
Back
<?php session_start(); require_once 'db.php'; if($_SESSION['user_id']==null) { header("Location:index.php"); } $Speed=$_POST['Speed']; $vessel_type=$_POST['vessel_type']; $dwt=$_POST['dwt']; $flag=$_POST['flag']; $built_year=$_POST['built_year']; $country_of_built=$_POST['country_of_built']; $l_w_h=$_POST['l_w_h']; $imo=$_POST['imo']; $status=$_POST['status']; $lastupdate=$_POST['lastupdate']; $TrackingCode=$_POST['TrackingCode']; $sql="INSERT INTO `vessel`(`speed`, `vessel_type`, `dwt`, `flag`, `built_year`, `country_of_built`, `l_w_h`, `imo`, `status`, `tracking_code`, `lastupdate`) VALUES('$Speed','$vessel_type','$dwt','$flag','$built_year','$country_of_built','$l_w_h','$imo','$status','$TrackingCode','$lastupdate')"; $result=mysqli_query($conn,$sql); //$_SESSION['trackingcode']=$_POST['TrackingCode']; ?> <script> var message="Vessel Details Created Successfully"; window.alert(message); window.location.replace("dashboard.php"); </script> <form action="receiverpage.php" method="post"> <input type="hidden" name="trackingcode" value="<?php echo $TrackingCode; ?>"> </form>
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.12 |
proxy
|
phpinfo
|
Settings