<?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>thesaucymare &#187; HTML</title>
	<atom:link href="http://thesaucymare.co.za/category/developer/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesaucymare.co.za</link>
	<description></description>
	<lastBuildDate>Tue, 02 Aug 2011 09:22:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress 3.0 Custom Post Type Custom Fields</title>
		<link>http://thesaucymare.co.za/wordpress-3-0-custom-post-type-custom-fields/</link>
		<comments>http://thesaucymare.co.za/wordpress-3-0-custom-post-type-custom-fields/#comments</comments>
		<pubDate>Fri, 21 May 2010 15:56:59 +0000</pubDate>
		<dc:creator>Booth Warwick</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[Custom Fields]]></category>
		<category><![CDATA[WordPress 3.0]]></category>

		<guid isPermaLink="false">http://www.thesaucymare.co.za/?p=158</guid>
		<description><![CDATA[I have been trying out]]></description>
			<content:encoded><![CDATA[<p>I have been trying out the custom post types for WordPress 3.0 Beta 2, I ran into a problem where i could not call the custom fields for posts i have assigned custom post type values.</p>
<p>I came up with this workaround for now until it is sorted.</p>
<pre>function get_post_meta_custom($key, $single = false) {
 global $wpdb,$post;
 $answer = $wpdb-&gt;get_var($wpdb-&gt;prepare("SELECT meta_value FROM $wpdb-&gt;postmeta WHERE post_id = ".$post-&gt;ID." AND meta_key = '".$key."'"));
 return $answer;
}</pre>
<p>Call it using the following. I use this inside on the single post inside the loop.</p>
<pre> if ( get_post_meta_custom('client_name', true) ) {echo get_post_meta_portfolio('client_name', true);    }</pre>
]]></content:encoded>
			<wfw:commentRss>http://thesaucymare.co.za/wordpress-3-0-custom-post-type-custom-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Form Security</title>
		<link>http://thesaucymare.co.za/form-security/</link>
		<comments>http://thesaucymare.co.za/form-security/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 07:51:15 +0000</pubDate>
		<dc:creator>Booth Warwick</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.thesaucymare.co.za/?p=78</guid>
		<description><![CDATA[I recently learnt that there]]></description>
			<content:encoded><![CDATA[<p>I recently learnt that there are two methods of bots messing around with forms on your website.</p>
<p>The following test is quoted from <a title="HTML Form Gods" href="http://www.html-form-guide.com" target="_blank">HTML Form Guide</a></p>
<blockquote><p><strong>a) As a relay for sending bulk unsolicited emails</strong><br />
If you are not validating your form fields (on the serve side) before sending the emails, then hackers can alter your email headers to send the bulk unsolicited emails. (also known as email injection) For example, hackers can place the following code in one of your form fields and make your form processor script send an email to an unintended recipient:</p>
<p>sender@theirdomain.com%0ABcc:NewRecipient@anotherdomain.com</p>
<p>The code above is adding another email address to the CC list of the email. Spammers can send thousands of emails using this exploit. Your host will not be happy with this and may warn you or even ban your web site.</p>
<p>The best way to prevent this spammer exploit is to validate the fields used in the mail() function(fields like email, subject of the email, name etc). Check for the presence of any &#8220;new line&#8221; (rn) in those fields. The email form article contains sample code that does the same.<br />
<strong>b) For Sending spam messages to you</strong></p>
<p>There are programs known as &#8216;spam-bots&#8217; that leech through the web pages looking for web forms. When found, those &#8216;bots&#8217; just fills the fields with a spam message and submits. Eventually you will start getting many hundred submissions send by those spam bots and you will find it difficult to separate genuine submissions from spam messages.</p>
<p>The solution for this problem is to use a mechanism to identify human submitters from &#8216;bots&#8217;. CAPTCHA is one of such tests.</p></blockquote>
<p>I have included two links in my Resources category to help against these two types of attack</p>
]]></content:encoded>
			<wfw:commentRss>http://thesaucymare.co.za/form-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Element Placing</title>
		<link>http://thesaucymare.co.za/html-element-placing/</link>
		<comments>http://thesaucymare.co.za/html-element-placing/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:06:13 +0000</pubDate>
		<dc:creator>Booth Warwick</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.thesaucymare.co.za/?p=37</guid>
		<description><![CDATA[A little thing I found]]></description>
			<content:encoded><![CDATA[<p>A little thing I found out when <a href="http://validator.w3.org/">validating</a> my code on WC3.</p>
<p>Elements such as <strong>p</strong> cannot be used inside inline elements <strong>h2, </strong>instead use <strong> font </strong>or <strong> span.</strong></p>
<ul>
<li>&lt;incorrect&gt;&lt;h2&gt;&lt;p&gt;Hello&lt;/p&gt;&lt;/h2&gt;</li>
<li>&lt;correct&gt;&lt;h2&gt;&lt;span&gt;Hello&lt;/span&gt;&lt;/h2&gt;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://thesaucymare.co.za/html-element-placing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

