<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Dynamic Drive Forums - PHP</title>
		<link>http://www.dynamicdrive.com/forums/</link>
		<description>PHP scripting.</description>
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 06:39:32 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>10</ttl>
		<image>
			<url>http://www.dynamicdrive.com/forums/images/misc/rss.png</url>
			<title>Dynamic Drive Forums - PHP</title>
			<link>http://www.dynamicdrive.com/forums/</link>
		</image>
		<item>
			<title><![CDATA[Removing extra <tr><td><table> and </tr></td></table> with preg_replace]]></title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73990-Removing-extra-lt-tr-gt-lt-td-gt-lt-table-gt-and-lt-tr-gt-lt-td-gt-lt-table-gt-with-preg_replace&amp;goto=newpost</link>
			<pubDate>Thu, 23 May 2013 19:28:32 GMT</pubDate>
			<description><![CDATA[Hi there! 
 
Sometimes people post ads with html tables in them and more often than not they have extra tags <tr><td><table> and </tr></td></table> which interferes with my site's layout. 
 
Is it possible to strip all EXTRA <tr><td><table> and </tr></td></table> with preg_replace? 
 
 
Thank you...]]></description>
			<content:encoded><![CDATA[<div>Hi there!<br />
<br />
Sometimes people post ads with html tables in them and more often than not they have extra tags &lt;tr&gt;&lt;td&gt;&lt;table&gt; and &lt;/tr&gt;&lt;/td&gt;&lt;/table&gt; which interferes with my site's layout.<br />
<br />
Is it possible to strip all EXTRA &lt;tr&gt;&lt;td&gt;&lt;table&gt; and &lt;/tr&gt;&lt;/td&gt;&lt;/table&gt; with preg_replace?<br />
<br />
<br />
Thank you for any input.</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>qwikad.com</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73990-Removing-extra-lt-tr-gt-lt-td-gt-lt-table-gt-and-lt-tr-gt-lt-td-gt-lt-table-gt-with-preg_replace</guid>
		</item>
		<item>
			<title>Directory hyperlinks</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73965-Directory-hyperlinks&amp;goto=newpost</link>
			<pubDate>Wed, 22 May 2013 16:16:52 GMT</pubDate>
			<description>Can anyone help me out with this? 
 
I have a website where I post results from races in .html or .pdf. 
 
Every time I post the results in a directory, I have to manually create a hyperlink 
 
I want a php script that will scan the directory and then create a list of hyperlinks ordered by the date...</description>
			<content:encoded><![CDATA[<div>Can anyone help me out with this?<br />
<br />
I have a website where I post results from races in .html or .pdf.<br />
<br />
Every time I post the results in a directory, I have to manually create a hyperlink<br />
<br />
I want a php script that will scan the directory and then create a list of hyperlinks ordered by the date of the file. I also would also like the links to not have the .pdf or .html extension on the end. I also do not want the underscore in the hyperlink but a space instead.<br />
<br />
Thanks for any help</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>phrozen1</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73965-Directory-hyperlinks</guid>
		</item>
		<item>
			<title>Php contactform handler with issues</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73963-Php-contactform-handler-with-issues&amp;goto=newpost</link>
			<pubDate>Wed, 22 May 2013 13:34:59 GMT</pubDate>
			<description>I have been looking at several pages of sollutions but I am lost in the woods. 
 
Obviously i am using a contactform on my website, I have found a working script written by Betty, and I have contacted this person for some support however that was 5 days ago and no answer yet. 
 
the Html part of...</description>
			<content:encoded><![CDATA[<div>I have been looking at several pages of sollutions but I am lost in the woods.<br />
<br />
Obviously i am using a contactform on my website, I have found a working script written by Betty, and I have contacted this person for some support however that was 5 days ago and no answer yet.<br />
<br />
the Html part of the contact form asks for:<br />
<br />
name,<br />
surname,<br />
email address,<br />
message,<br />
phonenumber,<br />
<br />
If any of these required fields are not or not correctly filled in the PHP script opens up a white pages filled with error messages.<br />
Than the user has to arrow back to the form page and start from scratch, this is ot only anoying but painfull, if you just typed a message of 1000 words and you typed your phone number wrong you get to do it all again lol<br />
<br />
further more there is no thank you except after submitting where it clears the form reloads the page and in the addressbar it states the name of the page/thankyou<br />
<br />
I have tried to tweak a few things and messed it up badly, i ended up spamming my own e-mail with over 50 test messages I need help!<br />
<br />
Since I can not upload the php script I have copied and past it here,<br />
<br />
What I would like to have:<br />
<br />
error messages in a windows popup without clearing the entire form<br />
a thank you message in a windows popup and clear the form/reload the page<br />
<br />
***** original php script ****<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#**********************************************<br />&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Contact&nbsp;Formulier&nbsp;vanBetty<br />&nbsp;&nbsp;&nbsp;&nbsp;#**********************************************<br /><br /></span><span style="color: #007700">if(isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'email'</span><span style="color: #007700">&#93;))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Pas&nbsp;deze&nbsp;twee&nbsp;regels&nbsp;aan.<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_to&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"seccondbest@aol.com"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_subject&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Bericht&nbsp;van&nbsp;een&nbsp;bezoeker"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;</span><span style="color: #0000BB">died</span><span style="color: #007700">(</span><span style="color: #0000BB">$error</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;je&nbsp;foutbericht&nbsp;staat&nbsp;hier<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"Het&nbsp;spijt&nbsp;ons,&nbsp;vanwege&nbsp;een&nbsp;fout&nbsp;is&nbsp;het&nbsp;formulier&nbsp;niet&nbsp;verzonden.&nbsp;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Deze&nbsp;fout(en)&nbsp;tonen&nbsp;zich&nbsp;hieronder.&lt;br&nbsp;/&gt;&lt;br&nbsp;/&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">$error</span><span style="color: #007700">.</span><span style="color: #DD0000">"&lt;br&nbsp;/&gt;&lt;br&nbsp;/&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Ga&nbsp;aub&nbsp;terug&nbsp;om&nbsp;de&nbsp;velden&nbsp;correct&nbsp;in&nbsp;te&nbsp;vullen.&lt;br&nbsp;/&gt;&lt;br&nbsp;/&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die();<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;validation&nbsp;expected&nbsp;data&nbsp;exists<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(!isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'first_name'</span><span style="color: #007700">&#93;)&nbsp;||<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;!isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'last_name'</span><span style="color: #007700">&#93;)&nbsp;||<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;!isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'email'</span><span style="color: #007700">&#93;)&nbsp;||<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;!isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'telephone'</span><span style="color: #007700">&#93;)&nbsp;||<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;!isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'comments'</span><span style="color: #007700">&#93;))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">died</span><span style="color: #007700">(</span><span style="color: #DD0000">'Het&nbsp;spijt&nbsp;ons,&nbsp;er&nbsp;is&nbsp;een&nbsp;probleem&nbsp;opgetredn&nbsp;bij&nbsp;het&nbsp;verzenden&nbsp;van&nbsp;het&nbsp;formulier.'</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$first_name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'first_name'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;verplicht<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$last_name&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'last_name'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;verplicht<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_from&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'email'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;verplicht<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$telephone&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'telephone'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;niet&nbsp;verplicht<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$comments&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'comments'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;verplicht<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$error_message&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_exp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"^&#91;A-Z0-9._%-&#93;+@&#91;A-Z0-9.-&#93;+\.&#91;A-Z&#93;{2,4}$"</span><span style="color: #007700">;<br />&nbsp;&nbsp;if(!</span><span style="color: #0000BB">eregi</span><span style="color: #007700">(</span><span style="color: #0000BB">$email_exp</span><span style="color: #007700">,</span><span style="color: #0000BB">$email_from</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$error_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'Het&nbsp;emailadres&nbsp;is&nbsp;niet&nbsp;geldig.&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$string_exp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"^&#91;a-z&nbsp;.'-&#93;+$"</span><span style="color: #007700">;<br />&nbsp;&nbsp;if(!</span><span style="color: #0000BB">eregi</span><span style="color: #007700">(</span><span style="color: #0000BB">$string_exp</span><span style="color: #007700">,</span><span style="color: #0000BB">$first_name</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$error_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'De&nbsp;voornaam&nbsp;is&nbsp;niet&nbsp;geldig.&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;if(!</span><span style="color: #0000BB">eregi</span><span style="color: #007700">(</span><span style="color: #0000BB">$string_exp</span><span style="color: #007700">,</span><span style="color: #0000BB">$last_name</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$error_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'De&nbsp;achternaam&nbsp;is&nbsp;niet&nbsp;geldig.&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;if(</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$comments</span><span style="color: #007700">)&nbsp;&lt;&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$error_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'Het&nbsp;bericht&nbsp;is&nbsp;niet&nbsp;geldig.&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$string_exp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"^&#91;0-9&nbsp;.-&#93;+$"</span><span style="color: #007700">;<br />&nbsp;&nbsp;if(!</span><span style="color: #0000BB">eregi</span><span style="color: #007700">(</span><span style="color: #0000BB">$string_exp</span><span style="color: #007700">,</span><span style="color: #0000BB">$telephone</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$error_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'Het&nbsp;telefoonnummer&nbsp;is&nbsp;niet&nbsp;geldig.&lt;br&nbsp;/&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;if(</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$error_message</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">died</span><span style="color: #007700">(</span><span style="color: #0000BB">$error_message</span><span style="color: #007700">);<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_message&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Gegevens&nbsp;formulier.\n\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;</span><span style="color: #0000BB">clean_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$string</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$bad&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #DD0000">"content-type"</span><span style="color: #007700">,</span><span style="color: #DD0000">"bcc:"</span><span style="color: #007700">,</span><span style="color: #DD0000">"to:"</span><span style="color: #007700">,</span><span style="color: #DD0000">"cc:"</span><span style="color: #007700">,</span><span style="color: #DD0000">"href"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">str_replace</span><span style="color: #007700">(</span><span style="color: #0000BB">$bad</span><span style="color: #007700">,</span><span style="color: #DD0000">""</span><span style="color: #007700">,</span><span style="color: #0000BB">$string</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Voornaam:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">clean_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$first_name</span><span style="color: #007700">).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Achternaam:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">clean_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$last_name</span><span style="color: #007700">).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Email:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">clean_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$email_from</span><span style="color: #007700">).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Telefoon:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">clean_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$telephone</span><span style="color: #007700">).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$email_message&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Bericht:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">clean_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$comments</span><span style="color: #007700">).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">//&nbsp;create&nbsp;email&nbsp;headers<br /></span><span style="color: #0000BB">$headers&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'From:&nbsp;'</span><span style="color: #007700">.</span><span style="color: #0000BB">$email_from</span><span style="color: #007700">.</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">.<br /></span><span style="color: #DD0000">'Reply-To:&nbsp;'</span><span style="color: #007700">.</span><span style="color: #0000BB">$email_from</span><span style="color: #007700">.</span><span style="color: #DD0000">"\r\n"&nbsp;</span><span style="color: #007700">.<br /></span><span style="color: #DD0000">'X-Mailer:&nbsp;PHP/'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">phpversion</span><span style="color: #007700">();<br />@</span><span style="color: #0000BB">mail</span><span style="color: #007700">(</span><span style="color: #0000BB">$email_to</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$email_subject</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$email_message</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$headers</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Location:contact.htm?thankyou"</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">?&gt;<br /></span><br /><br /><br /><span style="color: #0000BB">&lt;?<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;<br />&lt;?PHP<br /></span><span style="color: #FF8000">//Then&nbsp;outside&nbsp;the&nbsp;processing&nbsp;script&nbsp;add&nbsp;<br /></span><span style="color: #007700">If&nbsp;(isset(</span><span style="color: #0000BB">$_GET</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'thankyou'</span><span style="color: #007700">&#93;)){<br />echo&nbsp;</span><span style="color: #DD0000">"Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;email!&lt;br/&gt;&lt;br/&gt;"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></code><hr />
</div>the last part of this script //Then outside the processing script add if (isset bla bla bla), was my latest attempt to get a thankyou page and dindt work either<br />
<br />
I am at a lost here and realy any help is welcom but pease I am a beginner and learn by tweaking and seeing, i tryed reading and that didnt work<br />
<br />
thanks for reading my post</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>seccondbest</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73963-Php-contactform-handler-with-issues</guid>
		</item>
		<item>
			<title>Putting ... at the end of a title  (substr question)</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73895-Putting-at-the-end-of-a-title-(substr-question)&amp;goto=newpost</link>
			<pubDate>Fri, 17 May 2013 12:14:40 GMT</pubDate>
			<description><![CDATA[I've shortened titles to 60 characters. How do I tell this code to show three dots ... at the end of a title if the that title is more than 60 characters long and show nothing if it is less? 
 
 
Code: 
--------- 
<?php echo substr($row['adtitle'], 0, 60); ?> 
--------- 
Thank you.]]></description>
			<content:encoded><![CDATA[<div>I've shortened titles to 60 characters. How do I tell this code to show three dots ... at the end of a title if the that title is more than 60 characters long and show nothing if it is less?<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?php echo substr($row['adtitle'], 0, 60); ?&gt;</code><hr />
</div>Thank you.</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>qwikad.com</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73895-Putting-at-the-end-of-a-title-(substr-question)</guid>
		</item>
		<item>
			<title>When should error suppression be used?</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73883-When-should-error-suppression-be-used&amp;goto=newpost</link>
			<pubDate>Thu, 16 May 2013 05:21:09 GMT</pubDate>
			<description><![CDATA[When incorporating code from other sources I sometimes see it utilizing error suppression (@).  For debugging purposes I turn it off and often find it unnecessary.  I think that it is nice to have options with php like error suppression, but I can't figure out when it would be useful.  Where/when...]]></description>
			<content:encoded><![CDATA[<div>When incorporating code from other sources I sometimes see it utilizing error suppression (@).  For debugging purposes I turn it off and often find it unnecessary.  I think that it is nice to have options with php like error suppression, but I can't figure out when it would be useful.  Where/when should it be best used?</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>james438</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73883-When-should-error-suppression-be-used</guid>
		</item>
		<item>
			<title>Getting Longitude and Latitude</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73882-Getting-Longitude-and-Latitude&amp;goto=newpost</link>
			<pubDate>Thu, 16 May 2013 04:55:43 GMT</pubDate>
			<description>Normally we get/browser/ operating system some more details of our site user, from back end of website by calling a simple coding in php. 
My Qs is, Is there any way to get the longitude and latitude of a visitor of our site in php ?</description>
			<content:encoded><![CDATA[<div>Normally we get/browser/ operating system some more details of our site user, from back end of website by calling a simple coding in php.<br />
My Qs is, Is there any way to get the longitude and latitude of a visitor of our site in php ?</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>letom</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73882-Getting-Longitude-and-Latitude</guid>
		</item>
		<item>
			<title><![CDATA[Header ("Refresh: ") and IE bug]]></title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73881-Header-(-quot-Refresh-quot-)-and-IE-bug&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 22:12:45 GMT</pubDate>
			<description><![CDATA[This header/refresh works everywhere except IE. Is there a way to fix this bug? 
 
 
Code: 
--------- 
 
header("Refresh: 12; url=./login.html"); 
--------- 
 
Thanks!]]></description>
			<content:encoded><![CDATA[<div>This header/refresh works everywhere except IE. Is there a way to fix this bug?<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><br />
header(&quot;Refresh: 12; url=./login.html&quot;);</code><hr />
</div><br />
Thanks!</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>qwikad.com</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73881-Header-(-quot-Refresh-quot-)-and-IE-bug</guid>
		</item>
		<item>
			<title>Mixing a word in another word</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73878-Mixing-a-word-in-another-word&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 15:21:50 GMT</pubDate>
			<description><![CDATA[Adrain, can u suggest a solution for the following ? 
 
 
Code: 
--------- 
<?php 
 
$tm = "Nice"; 
$ad =  "Well";]]></description>
			<content:encoded><![CDATA[<div>Adrain, can u suggest a solution for the following ?<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?php<br />
<br />
$tm = &quot;Nice&quot;;<br />
$ad =&nbsp; &quot;Well&quot;;<br />
<br />
?&gt;</code><hr />
</div>I want to mix $tm in $ad (Nice in Well) <i>not using concat (Nicewell)</i>. <br />
but some thing as following.<br />
<br />
<b>Nwicelle</b> or some thing any complex string...<br />
<br />
Thanks<br />
<br />
Tom</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>letom</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73878-Mixing-a-word-in-another-word</guid>
		</item>
		<item>
			<title>Accessing a variable in a function from the main script</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73876-Accessing-a-variable-in-a-function-from-the-main-script&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 10:12:10 GMT</pubDate>
			<description><![CDATA[G'day all! 
 
Say I've got this function that connects to the mysql database -  
 
PHP: 
--------- 
function sqli_connect($username, $password) { 
		$connection = mysqli_connect("localhost", $username, $password); 
		//Test connection to database 
		if(mysqli_connect_errno()) {]]></description>
			<content:encoded><![CDATA[<div>G'day all!<br />
<br />
Say I've got this function that connects to the mysql database - <br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">sqli_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$username</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$password</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$connection&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysqli_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$username</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$password</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//Test&nbsp;connection&nbsp;to&nbsp;database<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if(</span><span style="color: #0000BB">mysqli_connect_errno</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Installation&nbsp;error:&nbsp;Could&nbsp;not&nbsp;connect&nbsp;to&nbsp;database."</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Then I call it from here -<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?php<br />
sqli_connect('****', '****');<br />
//Create the databases<br />
if(mysqli_query(<b>$connection</b>,&quot;CREATE DATABASE my_db&quot;)) { //Executes mysqli query and tests for a return of true at the same time<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Database my_db created successfully&quot;;<br />
} else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Error creating database: &quot; . mysqli_error($con);<br />
}<br />
?&gt;</code><hr />
</div>How can I give it the connection variable from the function?<br />
Thanks all :)<br />
keebs</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>keyboard1333</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73876-Accessing-a-variable-in-a-function-from-the-main-script</guid>
		</item>
		<item>
			<title>Show images from this category (question)</title>
			<link>http://www.dynamicdrive.com/forums/showthread.php?73870-Show-images-from-this-category-(question)&amp;goto=newpost</link>
			<pubDate>Tue, 14 May 2013 14:05:35 GMT</pubDate>
			<description><![CDATA[This code pulls images from my entire website.  
 
 
Code: 
--------- 
 
 
<?php if($row['picfile']) { ?> 
 
<img src="<?php echo "$datadir[adpics]/$row[picfile]"; ?>"]]></description>
			<content:encoded><![CDATA[<div>This code pulls images from my entire website. <br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><br />
<br />
&lt;?php if($row['picfile']) { ?&gt;<br />
<br />
&lt;img src=&quot;&lt;?php echo &quot;$datadir[adpics]/$row[picfile]&quot;; ?&gt;&quot;<br />
<br />
&lt;?php } else { ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;?php } ?&gt;</code><hr />
</div>What I want it to do is to pull images only from this category <div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> $row['catid'] == 12</code><hr />
</div>My problem is I know how how to do &quot;if catid == 12 then show images&quot; but I don't know how to tell it to &quot;show images only from catid == 12&quot;<br />
<br />
Any help will be appreciated.</div>

]]></content:encoded>
			<category domain="http://www.dynamicdrive.com/forums/forumdisplay.php?11-PHP">PHP</category>
			<dc:creator>qwikad.com</dc:creator>
			<guid isPermaLink="true">http://www.dynamicdrive.com/forums/showthread.php?73870-Show-images-from-this-category-(question)</guid>
		</item>
	</channel>
</rss>
