Hotel Reservation Form

Hotel Reservation Form

A client of mine asked me if I could create a hotel reservation form with client-side validation and multilingual support and this is the result. It comes along with support for 4 languages - English (”en-US”), Bulgarian (”bg”), German (”de”) and French (”fr”). The form labels and validation warning messages are stored in .xml files and parsed onload. The default language could be easily set by changing a single variable in the <head>…</head> of the webpage:

<script type="text/javascript">
	var formlanguage = "en-US";
	// Bulgarian - "bg";
	// English - "en-US";
	// German - "de";
	// French - "fr";
</script>

The localization files are easily editable and are stored in the ReservationForm/Localization/ folder. The form layout is pure CSS and may be customized by editing the ReservationForm/ReservationForm.css file.

Please, note that the distribution does NOT contain the server part of the application, i.e. ReservationForm.php. Any form to email script would do the job.

View Online Demo
Download the Script

Leave a Reply

You must be logged in to post a comment.