Two months ago, I’ve developed a contact reservation form in PHP. The form is really easily customizable and is straight forward to integrate.
I’ve developed the form for a small restaurant which was missing the feature on it’s joomla based website in order to be able for restaurant clients to reserve tables.
Here is how my restaurant reservation form looks like:

Later on I found there are plenty of possibilities to easily make a reservation form in Joomla but at that time I had no idea that custom contact forms can be prepared with Joomla, so I developed my own one from scratch in plain PHP and MySQL.
The form’s fields are in Dutch, because the form I’ve developed for a Dutch restaurant.
However changing the form text is really easy,to do so open the php file and modify it, according to your needs.
I decided to share here the reservation form in hope that it might be helpful to somebody out there.
The Reservation form is licensed under GPLv2 so you’re very welcome to distribute and modify it freely.
The form installation is described in the README file you will find bundled with the reservation form archive.
You can d Download my PHP restaurant reservation form here
Feedback on the form is very welcome!
Tags: archive, contact, contact forms, feature, feedback, file, form, idea, installation, Joomla, My PHP/MySQL Restaurant Reservation Form, Mysql, order, php, php mysql, possibilities, README, readme file, Reservation, Restaurant, restaurant reservation, scratch, somebody, text, time, website






thank’s bro.. God Bless
but file is corrupt..
Hi,
Which files are corrupt, files are perfectly okay you just need to put your own custom configurations in.
Tell me further what’s the problem and maybe I can help you to fix that.
Thanks for sharing.
Working perfect!
glad it helped 🙂
could you supply it in a Zip, or give instructions how to use it as gzip?
winzip & winrar just say the file is corrupt when trying to extract, might be a good idea to give the install instructions seperate for those of use who have a basic knowledge of this stuff
Hi,
Here is a link to a rar archive of the reservation form.
http://www.pc-freak.net/files/restaurant_reservation_form.rar
Please tell me if its ok now I can also make a .zip for you if you need it.
Best!
Georgi
Thanks so much, is hard at first because Dutch language, but is great script!
great script it collects the datas , thx for sharing
Hello there i was wondering if this php script is usable with this form that i am using.
Here is the js script for the form:
$(document).ready(function(){
$(“#ajax-reservation-form”).submit(function(){
var str = $(this).serialize();
$.ajax( { type: “POST”, url: “reservation.php”, data: str, success: function(msg){
if(msg == ‘OK’) // Message Sent? Show the ‘Thank You’ message and hide the form
{ result = ‘Your message has been sent. Thank you!Our manager will contact you to discuss your staying in our hotel.Reserve another room‘; $(“#reservation_fields”).hide(); }
else
{ result = msg; }
$(“#reservation_note”).html(result);
}
});
return false;
});
});
function reservation_freset(){
$(“#reservation_note”).html(”);
document.getElementById(‘ajax-reservation-form’).reset();
$(“#reservation_fields”).show();
};
Thanks any help would be great
Hi thanks, no idea i don’t understand well javascript. Read the code and give it a try.
I know this is an old script, but its method of generating email and SQL queries are naive, unsafe and should be avoided at all costs.
strip_tags will not protect you. In some cases it won’t even properly strip html tags. Prepared statements should be used for SQL queries – this code doesn’t adequately protect against SQL injection, header injection, or really anything. Please, never use this code in production, and never post it to forums where people know better.
Congratulations on building this and making it available!
I’ve noticed the script is vulnerable to SQL injection attacks though. It’s been a while since I did PHP development (I prefer Ruby these days) but look into the mysql_real_escape_string function, or prepared statements. I’d also recommend reading up on SQL Injection and database security in general.
Don’t be discouraged though, this is very cool, keep it up 🙂
Thanks for feedback Matt,
It was a quick form written in few hours for a Kurdish restaurant in Arnhem called Lumier.
At that time, I didn’t really cared of how secure it is. Finally the Kurdish Muslims, didn’t pay me the money, I’ve requeste
even though, I give my best to build it so I decided to droppped developing it.