<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Design strike &#187; wordpress page</title>
	<atom:link href="http://designstrike.net/tag/wordpress-page/feed" rel="self" type="application/rss+xml" />
	<link>http://designstrike.net</link>
	<description>Striking with the latest design info</description>
	<lastBuildDate>Fri, 18 Jun 2010 13:51:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to set up a hotel reservation form in a WordPress page</title>
		<link>http://designstrike.net/development/cms-development/how-to-set-up-a-hotel-reservation-form-in-a-wordpress-page.html</link>
		<comments>http://designstrike.net/development/cms-development/how-to-set-up-a-hotel-reservation-form-in-a-wordpress-page.html#comments</comments>
		<pubDate>Sun, 20 Sep 2009 05:00:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CMS Development]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[custom template]]></category>
		<category><![CDATA[hotel reservation]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[wordpress  page]]></category>

		<guid isPermaLink="false">http://designstrike.net/?p=1063</guid>
		<description><![CDATA[A few days back I was asked by a client to set up a hotel reservation form in his WordPress powered website. The problem is easy to solve and implement. This tutorial consists of setting up a WordPress custom page template and some php for a Hotel reservation page. By the end of this tutorial [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdesignstrike.net%2Fdevelopment%2Fcms-development%2Fhow-to-set-up-a-hotel-reservation-form-in-a-wordpress-page.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdesignstrike.net%2Fdevelopment%2Fcms-development%2Fhow-to-set-up-a-hotel-reservation-form-in-a-wordpress-page.html&amp;source=designstrike&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A few days back I was asked by a client to set up a hotel reservation form in his WordPress powered website. The problem is easy to solve and implement. This tutorial consists of setting up a WordPress custom page template and some php for a Hotel reservation page.</p>
<p><img src="http://designstrike.net/wp-content/uploads/2009/09/Result-reservation1.gif" alt="Result-reservation" title="Result-reservation" width="600" height="235" class="alignnone size-full wp-image-1088" style="border: 1px solid #ccc; padding:5px;" /></p>
<p>By the end of this tutorial you will know hot to set up a hotel reservation page, a restaurant reservation page or anything that requires a reservation inside WordPress.<br />
<span id="more-1063"></span><br />
<strong>Step #1 &#8211; Set up a WordPress custom page template</strong></p>
<p>This is fairly easy to do. Go inside your WP theme root and simply duplicate the page.php file and name it anything you want. I renamed my file<strong> reservation.php</strong>.</p>
<p>Next you need to delete everything in the page loop. So head over open up your reservations.php and delete this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
			&lt;div class=&quot;entry&quot;&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;p class=&quot;serif&quot;&gt;Read the rest of this page &amp;raquo;&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next_or_number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			&lt;/div&gt;
		&lt;/div&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit this entry.'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The next thing to do is to tell WordPress there is a custom page template named reservations.php. To do this simply copy and paste the following before the <strong>get_header();</strong> tag.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #666666; font-style: italic;">/*
    Template Name: RESERVATION
&nbsp;
    */</span>
    <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>So you got something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #666666; font-style: italic;">/*
    Template Name: REZERVARI
&nbsp;
    */</span>
    <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Next go inside your WordPress dashboard and add a new page, on the right you will have a option to select a custom page template. Select RESERVATIONS like in the image below.</p>
<p><img src="http://designstrike.net/wp-content/uploads/2009/09/Custom-template-select.gif" alt="Custom-template-select" title="Custom-template-select" width="600" height="235" class="alignnone size-full wp-image-1075" style="border: 1px solid #ccc; padding:5px;"  /></p>
<p><strong>Step #2 Setting up the reservation php code</strong></p>
<p>Now the only place you will need to work is the reservation php file. Go and edit the file and copy/paste this code where the page loop was.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;script&gt;
function checkform2 ( form )
{
&nbsp;
  if (form.nume.value == &quot;&quot;) {
    alert( &quot;Va rugam completati campul: Nume!&quot; );
    form.nume.focus();
    return false ;
  }
&nbsp;
  if (form.prenume.value == &quot;&quot;) {
    alert( &quot;Va rugam completati campul: Prenume!&quot; );
    form.prenume.focus();
    return false ;
  }
&nbsp;
  if (form.telefon.value == &quot;&quot;) {
    alert( &quot;Va rugam completati campul: Telefon!&quot; );
    form.telefon.focus();
    return false ;
  }
&nbsp;
&nbsp;
&nbsp;
  return true ;
}
&lt;/script&gt;
		&lt;h2&gt;Online Reservation&lt;/h2&gt; 
&lt;form name=&quot;tstest&quot; method=&quot;post&quot; action=&quot;/reservation&quot; onsubmit=&quot;return checkform2(this)&quot;&gt;
&nbsp;
&nbsp;
To make a online reservation to one of our hotel rooms please fill out the form below:
&nbsp;
&nbsp;
                    &lt;table class=&quot;BodyTXT&quot; border=&quot;0&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&nbsp;
                      &lt;tbody&gt;&lt;tr&gt;
&nbsp;
                        &lt;td width=&quot;22%&quot;&gt;&lt;div align=&quot;left&quot;&gt;First Name:*&lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;&lt;input name=&quot;nume&quot; id=&quot;nume&quot; type=&quot;text&quot;&gt;&lt;/td&gt;
&nbsp;
                        &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Last Name:*&lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;&lt;input name=&quot;prenume&quot; id=&quot;prenume&quot; type=&quot;text&quot;&gt;&lt;/td&gt;
                      &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Phone:*&lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;&lt;input name=&quot;telefon&quot; id=&quot;telefon&quot; type=&quot;text&quot;&gt;&lt;/td&gt;
                      &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;E-mail:&lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;&lt;input name=&quot;email&quot; id=&quot;email&quot; type=&quot;text&quot;&gt;&lt;/td&gt;
                      &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Room number:&lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;
&nbsp;
						&lt;select name=&quot;nr_camere&quot; id=&quot;nr_camere&quot;&gt;
							&lt;option selected=&quot;selected&quot; value=&quot;1&quot;&gt;1&lt;/option&gt;
							&lt;option value=&quot;2&quot;&gt;2&lt;/option&gt;
							&lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
							&lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
						&lt;/select&gt;						&lt;/td&gt;
                      &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Room: &lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;
						&lt;select name=&quot;camera&quot;&gt;
							&lt;option value=&quot;Double&quot;&gt;Double&lt;/option&gt;
							&lt;option value=&quot;Matrimoniala&quot;&gt;Apartment&lt;/option&gt;
							&lt;option value=&quot;Matrimoniala cu jacuzzi&quot;&gt;Apartment with jacuzzi&lt;/option&gt;
						&lt;/select&gt;						&lt;/td&gt;
                      &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Arrival date: &lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td width=&quot;47%&quot;&gt;&lt;input name=&quot;data_intrare&quot; id=&quot;data_intrare&quot; type=&quot;text&quot;&gt;&lt;script language=&quot;JavaScript&quot;&gt;
	var o_cal = new tcal ({
		// form name
		'formname': 'tstest',
		// input name
		'controlname': 'data_intrare'
	});
&nbsp;
	// individual template parameters can be modified via the calendar variable
	o_cal.a_tpl.yearscroll = false;
	o_cal.a_tpl.weekstart = 1;
&nbsp;
	&lt;/script&gt;&lt;/td&gt;
                        &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Departure Date: &lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td width=&quot;47%&quot;&gt;&lt;input name=&quot;data_iesire&quot; id=&quot;data_iesire&quot; type=&quot;text&quot;&gt;&lt;script language=&quot;JavaScript&quot;&gt;
	var o_cal = new tcal ({
		// form name
		'formname': 'tstest',
		// input name
		'controlname': 'data_iesire'
	});
&nbsp;
	// individual template parameters can be modified via the calendar variable
	o_cal.a_tpl.yearscroll = false;
	o_cal.a_tpl.weekstart = 1;
&nbsp;
	&lt;/script&gt;&lt;/td&gt;
                        &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;div align=&quot;left&quot;&gt;Other comments: &lt;/div&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;&lt;textarea name=&quot;observatii&quot; cols=&quot;40&quot; rows=&quot;4&quot; id=&quot;observatii&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                        &lt;td&gt;* required fields&lt;/td&gt;
                        &lt;/tr&gt;
&nbsp;
                      &lt;tr&gt;
&nbsp;
                        &lt;td&gt;&lt;/td&gt;
&nbsp;
                        &lt;td&gt;&lt;input name=&quot;trimitecontact&quot; id=&quot;trimitecontact&quot; value=&quot;yes&quot; type=&quot;hidden&quot;&gt;
&nbsp;
&nbsp;
                            &lt;input name=&quot;Submit&quot; class=&quot;RedButton&quot; value=&quot;Send&quot; type=&quot;submit&quot;&gt;&lt;/td&gt;
                        &lt;/tr&gt;
                    &lt;/tbody&gt;&lt;/table&gt;
&nbsp;
&nbsp;
      &lt;/form&gt;
&nbsp;
&nbsp;
 <span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'trimitecontact'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;yes&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$nume</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nume'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$prenume</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prenume'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$telefon</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'telefon'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$cam</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nr_camere'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$tip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'camera'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$di</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'data_intrare'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$die</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'data_intrare'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$mesaj</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'observatii'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;This reservation is from:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;------------------------------------------------------------<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;First Name: <span style="color: #006699; font-weight: bold;">$nume</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Last Name: <span style="color: #006699; font-weight: bold;">$prenume</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Phone: <span style="color: #006699; font-weight: bold;">$telefon</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Email : <span style="color: #006699; font-weight: bold;">$email</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Room Number: <span style="color: #006699; font-weight: bold;">$cam</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Room: <span style="color: #006699; font-weight: bold;">$tip</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Arrival Date: <span style="color: #006699; font-weight: bold;">$di</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Departure Date: <span style="color: #006699; font-weight: bold;">$die</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;Other Comments : <span style="color: #006699; font-weight: bold;">$mesaj</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
	<span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>------------------------------------------------------------<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">;</span>
	<span style="color: #000088;">$uself</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;New room reservation at your hotel&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$headersep</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$uself</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$uself</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$http_referrer</span> <span style="color: #339933;">=</span> <span style="color: #990000;">getenv</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;HTTP_REFERER&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$mailto</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'CHANGE@THIS.TOYOUREMAIL'</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #990000;">getenv</span><span style="color: #009900;">&#40;</span>REMOTE_ADDR<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mailto</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">,</span> <span style="color: #000088;">$message</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">&quot;From: <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$nume</span><span style="color: #000099; font-weight: bold;">\&quot;</span> &lt;<span style="color: #006699; font-weight: bold;">$email</span>&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$headersep</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;Reply-To: <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$nume</span><span style="color: #000099; font-weight: bold;">\&quot;</span> &lt;<span style="color: #006699; font-weight: bold;">$email</span>&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$headersep</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;X-Mailer: chfeedback.php 2.08&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;strong&gt; Quote sent&lt;/strong&gt;'</span><span style="color: #339933;">;</span>				
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
   &lt;span class=&quot;text_contact&quot;&gt;
&nbsp;
The reservation will be considered after receiving payment.
                  &lt;/span&gt;</pre></div></div>

<p>And this is the result:</p>
<p><img src="http://designstrike.net/wp-content/uploads/2009/09/Result-reservation.gif" alt="Result-reservation" title="Result-reservation" width="600" height="235" class="alignnone size-full wp-image-1087" style="border: 1px solid #ccc; padding:5px;"  /></p>
<p>Note: You must set the <strong>action=&#8221;/reservation&#8221;</strong> of the form imput to match your custom page php name. Ex. if I have a custom page php called joomla.php i would rename the action to action=&#8221;/joomla&#8221;. </p>
<p>Remember to chage the <strong>$mailto = &#8216;CHANGE@THIS.TOYOUREMAIL&#8217; ;</strong> to your desiered email where the messages will come.</p>
]]></content:encoded>
			<wfw:commentRss>http://designstrike.net/development/cms-development/how-to-set-up-a-hotel-reservation-form-in-a-wordpress-page.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
