<?php

session_start();

//Date: 6.10.2025

?>

<style>

@import url('https://fonts.googleapis.com/css?family=Oswald');

.left {
    
background: #4B4B4B;
border-radius: 10px 0 0 10px;
margin-right: 5px;

}

.left hr {

border: 1px solid #666666;

}

.right {

background: #DEDEDE;
border-radius: 0 10px 10px 0;
margin-right: 5px;

}

.left h4 {

font-family: 'Oswald', sans-serif;
font-size: 22px;
color: #E1E1E1 !important;
padding: 5px;
margin: 0;
border: 0px solid red;

}

.left span {

font-family: 'Oswald', sans-serif;
font-size: 25px;
color: #E1E1E1 !important;
padding: 5px;
margin: 0;
border: 0px solid red;

}

.right span {

font-family: 'Oswald', sans-serif;
font-size: 25px;
color #717171 !important;
padding: 5px;
margin: 0;
border: 0px solid red;

}

.left p{

font-family: Arial, helvetica, sans-serif;
font-size: 18px;
color: #BBBBBB;
padding: 5px;
margin: 0;
border: 0px solid red;

}

.right p {

font-family: Arial, helvetica, sans-serif;
font-size: 18px;
color: #717171;
padding: 5px;
margin: 0;
border: 0px solid red;

}

.right label {

font-family: Arial, helvetica, sans-serif;
font-size: 20px;
color: #717171;
padding: 5px;
margin: 0;
border: 0px solid red;

}


img { border: 1px solid #888; }

</style>


<?php 

include(".scripts/cap/simple-php-captcha.php");


$_SESSION['captcha'] = simple_php_captcha( array(
	'min_length' => 5,
	'max_length' => 5,
	'characters' => 'ABCDEFGHJKLMNPRSTUVWXYZabcdefghjkmnprstuvwxyz23456789',
	'min_font_size' => 28,
	'max_font_size' => 28,
	'color' => '#575757',
	'angle_min' => 0,
	'angle_max' => 10,
	'shadow' => false,
	'shadow_color' => '#fff',
	'shadow_offset_x' => -1,
	'shadow_offset_y' => 1
));

?>

<!DOCTYPE html>
<html>
<head>
<title>TM08 Forms | ThaiDocs.online</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>
<body>
<br />
<div class="row justify-content-md-center">
    <div class="col-3 left">
        
<span>Guideline</span>

<p>Below are guidelines to help you better fill in all the details for your TM08 Application also known as Re-Entry Permit.  </p>

<h4 class="grey">Written at</h4>
<p align="left">Where the application is written at, i.e: Elephant Resort</p>

<hr class="grey">

<h4 class="grey">Family Name</h4>
<p align="left">Last name of the applicant</p>
<h4 class="grey">First Name</h4>
<p align="left">The first name of the applicant</p>
<h4 class="grey">Middle Name</h4>
<p align="left">Leave blank if no middle name.</p>

<hr class="grey">

<h4 class="grey">Date of Birth</h4>
<p align="left">Your date of birth (DD MM YYYY i.e 09 12 1965)</p>

<hr class="grey">

<h4 class="grey">Place of Birth</h4>
<p align="left">Where you were born.</p>
<h4 class="grey">Nationality</h4>
<p align="left">Enter your Nationality i.e Israel</p>
<h4 class="grey">Country</h4>
<p align="left">Enter your Country i.e Israel</p>

<hr class="grey">

<h4 class="grey">Occupation</h4>
<p align="left">What do you do?</p>

<hr class="grey">

<h4 class="grey">Address No.</h4>
<p align="left">Address no, is something like 14/14</p>
<h4 class="grey">Road</h4>
<p align="left">Road is something like Sai Yuan Road or Wiset Road</p>
<h4 class="grey">Tambon</h4>
<p align="left">Tambon is Sub-district like Chalong, Rawai, Nai Harn</p>
<h4 class="grey">Amphoe</h4>
<p align="left">Amphoe is the district like Mueang Phuket</p>
<h4 class="grey">Changwat</h4>
<p align="left">Changwat is the province, Phuket, Chon Buri, Sakhon Nakhon</p>

<hr class="grey">

<h4 class="grey">Passport Country</h4>
<p align="left">Enter your passport country of origin</p>
<h4 class="grey">Passport No</h4>
<p align="left">Enter your passport number</p>
<h4 class="grey">Passport date of Issue</h4>
<p align="left">Fill in the date DD MM YYYY</p>
<h4 class="grey">Passport Issue location</h4>
<p align="left">Where was it issued</p>
<h4 class="grey">Passport validity</h4>
<p align="left">When does your Passport expire, (Note: If you are a senior citizen of a country that issues Passports with no expiration, leave all fields as N/A)</p>

<hr class="grey">

<h4 class="grey">What type of re-entry</h4>
<p align="left">Here is if you need single or multiple entries into the kingdom, upon your return.</p>

<hr class="grey">

<h4 class="grey">My Previous visa for Thailand is of the category</h4>
<p align="left">What kind of Visa is it, Non-Immigrant, Tourist Visa, Transit Visa, Others</p>

<hr class="grey">

<h4 class="grey">I Intend to travel to</h4>
<p align="left">Where do you intend to go as the reason for the re-entry</p>

<h4 class="grey">Date of Departure from the Kingdom</h4>
<p align="left">Fill in the date DD MM YYYY</p>

<h4 class="grey">By (type of transportation)?</h4>
<p align="left">What kind of transportation will you leave with, boat, flight</p>

<h4 class="grey">For (purpose of travelling)?</h4>
<p align="left">What are you intending to do, train, sight seeing, business abroad etc</p>

<h4 class="grey">And shall return</h4>
<p align="left">Fill in the date DD MM YYYY</p>

<hr class="grey">

<h4 class="grey">Previous Visa Issue location</h4>
<p align="left">The location of which your Visa was issued</p>
<h4 class="grey">Previous Visa Date</h4>
<p align="left">Fill in the date DD MM YYYY</p>
<h4 class="grey">I arrived in Thailand on</h4>
<p align="left">Fill in the date DD MM YYYY</p>
<h4 class="grey">And have been permitted to stay up to</h4>
<p align="left">Fill in the date DD MM YYYY of the last entry stamp into the kingdom, showing how long you were permitted to stay.</p>


    </div>
    <div class="col-4 right">
        
<span>TM.08</span>

<p>The form below is for re-applying to the Kingdom of Thailand. </p>

<form id="tmforms" name="tmforms" method="post" action="./.scripts/tm08/output.php">

<div class="form-group">  
<label for="writtenat">Written at*:</label>
<input type="text" class="form-control" name="writtenat"  />
</div>

<div class="row">
<div class="col">
<label for="firstname">First Name*:</label>
<input type="text" class="form-control" name="firstname"  />
</div>
<div class="col">
<label for="middlename">Middle Name:</label>
<input type="text" class="form-control" name="middlename" />
</div>
<div class="col">
<label for="familyname">Family Name*:</label>
<input type="text" class="form-control" name="familyname"  />
</div>
</div>

<label for="dateofbirth">Date of Birth*:</label>
<div class="form-inline">  
<select class="form-control" name="dd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="mm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="yyyy">
<?php
for ($x = 1920; $x <= date("Y"); $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>
</div>

<div class="form-group">  
<label for="placeofbirth">Place of birth*:</label>
<input type="text" class="form-control" name="placeofbirth"  />
</div>

<div class="form-group">  
<label for="nationality">Nationality*:</label>
<input type="text" class="form-control" name="nationality"  />
</div>

<div class="form-group">  
<label for="country">Country*:</label>
<input type="text" class="form-control" name="country"  />
</div>

<div class="form-group">  
<label for="occupation">Occupation*:</label>
<input type="text" class="form-control" name="occupation"  />
</div>

<hr class="grey">

<div class="form-group">  
<label for="addressno">Present Address No*:</label>
<input type="text" class="form-control" name="addressno"  />
</div>

<div class="form-group">  
<label for="addressroad">Road*:</label>
<input type="text" class="form-control" name="addressroad" />
</div>

<div class="form-group">  
<label for="tambon">Tambon(Sub-district)*:</label>
<input type="text" class="form-control" name="tambon"  />
</div>

<div class="form-group">  
<label for="amphoe">Amphoe(District)*:</label>
<input type="text" class="form-control" name="amphoe"  />
</div>

<div class="form-group">  
<label for="changwat">Changwat(Province)*:</label>
<input type="text" class="form-control" name="changwat"  />
</div>

<hr class="grey">


<div class="form-group">  
<label for="pcountry">Passport Country*:</label>
<input type="text" class="form-control" name="pcountry"  />
</div>

<div class="form-group">  
<label for="pno">Passport No*:</label>
<input type="text" class="form-control" name="pno"  />
</div>

<div class="form-group">  
<label for="pidd">Passport Date of Issue*:</label>
<div class="form-inline">  
<select class="form-control" name="pidd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="pimm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="piyyyy">
<?php
$currentDate = new DateTime();
$currentYear = $currentDate->format('Y');

for ($x = $currentYear-10; $x <= $currentYear+10; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>
</div>

<div class="form-group">  
<label for="plocation">Passport Issue Location*:</label>
<input type="text" class="form-control" name="plocation" />
</div>

<label for="passportvalidity">Passport Valid Until*:</label>
<div class="form-inline">  
<select class="form-control" name="pvdd">
<option value="NULL">N/A</option>
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="pvmm">
    <option value="NULL">N/A</option>
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="pvyyyy">
    <option value="NULL">N/A</option>
<?php
$currentDate = new DateTime();
$currentYear = $currentDate->format('Y');

for ($x = $currentYear; $x <= $currentYear+50; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>
</div>

<hr class="grey">

<label>Type of Visa*:</label>
<br />
<div class="form-check form-check-inline">  
  <label class="form-check-label">
<input type="radio" class="form-check-input" name="reentry" value="single">
    Single
  </label>
 </div>
 <div class="form-check form-check-inline">
       <label class="form-check-label">
<input type="radio" class="form-check-input" name="reentry" value="multi">
    Multi
  </label>
</div>

<hr class="grey">


<label for="typeofvisa">Previous Visa Category*:</label>
<br />
<div class="form-check form-check-inline">  
  <label class="form-check-label">
<input type="radio" class="form-check-input" name="pvisa" value="nonimm">
    Non-Immigrant Visa
  </label>
 </div>
 <div class="form-check form-check-inline">
  <label class="form-check-label">
<input type="radio" class="form-check-input" name="pvisa" value="tourist">
    Tourist
  </label>
</div>
<div class="form-check form-check-inline">  
  <label class="form-check-label">
<input type="radio" class="form-check-input" name="pvisa" value="transit">
    Transit Visa
  </label>
 </div>
 <div class="form-check form-check-inline">  
   <label class="form-check-label">
<input type="radio" class="form-check-input" name="pvisa" value="others">
    Others
  </label>
 </div>

<hr class="grey">

<div class="form-group">  
<label for="intto">I Intend to travel to*:</label>
<input type="text" class="form-control" name="intto"  />
</div>
<label for="intdep">Date of Departure*:</label>
<div class="form-inline">  
<select class="form-control" name="intdepdd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="intdepmm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="intdepyyyy">
<?php
for ($x = date("Y"); $x <= date("Y")+10; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>
</div>
<div class="form-group">  
<label for="intby">By(Type of Transportation)*:</label>
<input type="text" class="form-control" name="intby"  />
</div>
<div class="form-group">  
<label for="intfor">For(Purpose of travelling)*:</label>
<input type="text" class="form-control" name="intfor"  />
</div>
<label for="intreturn">And shall return*:</label>
<div class="form-inline">  
<select class="form-control" name="intreturndd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="intreturnmm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="intreturnyyyy">
<?php
for ($x = date("Y"); $x <= date("Y")+10; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>
</div>

<hr class="grey">

<label for="previsaissue">Previous Visa Issue Location*:</label>
<div class="form-inline">  
<input type="text" class="form-control" name="previsaissue"  />
</div>

<label for="previsadate">Previous Visa Date*:</label>
<div class="form-inline">  
<select class="form-control" name="previsadd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="previsamm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="previsayyyy">
<?php
for ($x = date("Y")-10; $x <= date("Y")+10; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>
</div>

<label for="iarrivedon">I arrived in Thailand on*:</label>
<div class="form-inline">
<select class="form-control" name="iarriveddd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="iarrivedmm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="iarrivedyyyy">
<?php
for ($x = date("Y")-10; $x <= date("Y"); $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

</div>

<label for="permission">Permitted to stay up to*:</label>
<div class="form-inline">  
<select class="form-control" name="permitteddd">
<?php
for ($x = 1; $x <= 31; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

<select class="form-control" name="permittedmm">
  <option value="January">January</option>
  <option value="February">February</option>
  <option value="March">March</option>
  <option value="April">April</option>
  <option value="May">May</option>
  <option value="June">June</option>
  <option value="July">July</option>
  <option value="August">August</option>
  <option value="September">September</option>
  <option value="October">October</option>
  <option value="November">November</option>
  <option value="December">December</option>
</select>

<select class="form-control" name="permittedyyyy">
<?php
for ($x = date("Y")-10; $x <= date("Y")+10; $x++) {
    echo '<option value="' .$x. '">' .$x. '</option>';
} 
?>
</select>

</div>


<hr class="grey">



<img src="./.scripts/cap/simple-php-captcha.php?_CAPTCHA&amp;t=0.88478300+1523771086" class="push_right" />

<div class="form-group">  
<label for="captcha">Type the above characters in the field (case sensitive)*:</label>
<input type="text" class="form-control" name="captcha" id="contactcaptcha" />
</div>

<input class="btn btn-success btn-lg" type="submit" value="Submit Forms">
<input class="btn btn-danger btn-lg" type="reset" value="Clear Forms">

</form>

</div>
</div>
</div>
<br />

<div class="row justify-content-md-center">

<a class="btn btn-dark btn-lg" href="#" onclick="window.history.go(-1)" role="button">Go Back to Main</a>

</div>
<br />
</body>
</html>