I'm trying to add the calendar script in my reservation form. I found the script on http://www.dynamicdrive.com/dynamici...oncalendar.htm and i figured out the way how to place it inside the form.
The problem is that when you fill in the date in the form and submit it I dont receive the dates.
This is the code i used
This is the other php file >Code:From date:</div></td> <td class="style3"> </td> <td class="style2"><font face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="textfield9"> <script>DateInput('orderdate', true, 'DD-MON-YYYY')</script> </font></td> </tr> <tr> <td width="40%" class="style3"><div align="right"><span class="style22">To date:</span></div></td> <td class="style3"> </td> <td class="style2"><font face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="textfield10"> <script>DateInput('orderdate', true, 'DD-MON-YYYY')</script> dd/mm/gggg </font></td>
Does anyone knows how i can rezolve this?Code:<? $za=1; $textfield = $HTTP_POST_VARS ['textfield'] ; $textfield1 = $HTTP_POST_VARS ['textfield1'] ; $textfield2 = $HTTP_POST_VARS ['textfield2'] ; $textfield3 = $HTTP_POST_VARS ['textfield3'] ; $textfield4 = $HTTP_POST_VARS ['textfield4'] ; $textfield5 = $HTTP_POST_VARS ['textfield5'] ; $textfield6 = $HTTP_POST_VARS ['textfield6'] ; $textfield7 = $HTTP_POST_VARS ['textfield7'] ; $textfield8 = $HTTP_POST_VARS ['menu1'] ; $textfield9 = $HTTP_POST_VARS ['textfield9'] ; $textfield10 = $HTTP_POST_VARS ['textfield10'] ; $textarea = $HTTP_POST_VARS ['textarea'] ; $menu1 = $HTTP_POST_VARS ['menu1'] ; if ($za==1) { $message = "<b>REZERVACIJA</b><br>"; $message = $message . "<br>Ime i prezime : " . $textfield; $message = $message . "<br>E-mail : " . $textfield1; $message = $message . "<br>Kontakt Tel : " . $textfield2; $message = $message . "<br>Adresa : " . $textfield3; $message = $message . "<br>Grad : " . $textfield4; $message = $message . "<br>Drzava : " . $textfield5; $message = $message . "<br>Mjesto preuzimanja automobila : " . $textfield6; $message = $message . "<br>Mjesto vracanja automobila : " . $textfield7; $message = $message . "<br>Automobil : " . $menu1; $message = $message . "<br>From date : " . $textfield9; $message = $message . "<br>To date : " . $textfield10; $message = $message . "<br>Poruka : " . $textarea; echo $message; $mail->From = $textfield1; // od koga je mail. ovo polje da bi samo na reply odogovrio $mail->FromName = $textfield; $mail->Subject = "Rezervacija sa sajta"; $mail->Body = $message; $mail->WordWrap = 50; if (mail("lekic100@gmail.com.com", "REZERVACIJA", $message)) echo 'PODACI USPJESNO POSLATI <br /> <a href="http://www.adutrentacar.com/rezervisi.php"><img src="/images/nazad.jpg" width="114" height="40" border="0" /></a>'; } ?>
Thank You.



Reply With Quote

Bookmarks