hai…i got some problem with getting the datepicker value from input box into session part using get
here my javascript code
[code]
window.onload = function(){
new JsDatePick({
useMode:2,
target:"inputField",
dateFormat:"%d-%m-%Y",
});
});[/code]
php
[php]<?php
include(“bus_DB.php”);
if(isset ($_GET[“searchbtn”]))
{
//$_SESSION[“way”]= $_GET[“twoways”];
$_SESSION[“depart”]= $_GET[“departstatetxt”];
$_SESSION[“arrive”]= $_GET[“arrivalstatetxt”];
$_SESSION[“date”]=stripslashes(trim($_GET[“inputField”]));
echo $_SESSION[“depart”];
echo $_SESSION[“arrive”];
echo $_SESSION[“date”];
}
%>[/php]
#my form code
[code]
Two ways
<option value="">--Select--</option>
<option value="Johor">Johor</option>
<option value="Melaka">Kedah</option>
<option value="Negeri Sembilan">Kelantan</option>
<option value="Selangor">Kuala Lumpur</option>
<option value="Kuala Lumpur">Negeri Sembilan</option>
</select>
</span> </td>
</tr>
<tr>
<td align="right"><span class="style27">Arrival</span></td>
<td><span class="style26">
<select name="arrivalstatetxt" >
<option value="">--Select--</option>
<option value="Johor">Johor</option>
<option value="Melaka">Kedah</option>
<option value="Negeri Sembilan">Kelantan</option>
<option value="Selangor">Kuala Lumpur</option>
<option value="Kuala Lumpur">Negeri Sembilan</option>
</select>
</span></td>
</tr>
<tr>
<td align="right"><span class="style27">Date</span></td>
<td><span class="style26"><input type="text" name="inputField" size="12" id="inputField" readonly="readonly" /></span></td>
</tr>
when i display the date by using session echo…its doesnt work…please help me…