<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Webmaster Forum</title>
		<description>Webmaster discussion on numerous topics including Website design, programming, scripting, hosting, server administration, search engines, and operating systems</description>
		<link>http://www.ozzu.com</link>
		<lastBuildDate>Fri, 09 May 2008 19:03:04 -0700</lastBuildDate>
				<item>
			<dc:creator>argrafic</dc:creator>
			<pubDate>Fri, 09 May 2008 11:31:51 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-email-answers-into-database-t88103.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-email-answers-into-database-t88103.html</link>
			<title>PHP - Email answers into database</title>
			<description><![CDATA[Hello all,<br /><br />I use HTML Mime Mail for PHP (<!-- m --><a class="postlink" href="http://www.phpguru.org/static/mime.mail.html" rel="nofollow" target="_blank">http://www.phpguru.org/static/mime.mail.html</a><!-- m -->) to send emails from a website. It works as a regular contact form and when someone answers it the data is stored in the database and it is also emailed to several people.<br /><br />The purpose of the contact form is to work for the FAQs section of the site. So we made an administrator that you could select the data registered by the user and anwer the question. This would send the user an email and store the answer in the database.<br /><br />The people that use it have now found that that way could be inpractical for them, because they sometimes are in such a hurry they just answer the questions directly through their emails and not from the application.<br /><br />Is there a way so that when they send an email the answer gets stored directly in the database?<br /><br />Thanks!!!]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>Shile</dc:creator>
			<pubDate>Fri, 09 May 2008 11:20:08 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/visible-hidden-include-t88102.html</guid>
			<link>http://www.ozzu.com/programming-forum/visible-hidden-include-t88102.html</link>
			<title>Visible/hidden include</title>
			<description><![CDATA[I have web page made with php.Its &quot;container&quot; that includes parts of page with include/require function.<br /><br />I need this...when (if!) visitor has &quot;my&quot; cookie that different page is included or an page it loads if visitor has cookie or doesnt load if visitor doesnt have cookie.<br /><br />There will be login form after which visitor gets cookie (or is better to do with session??) - this part will be developed later...when I solve previous...<br /><br />So..is there possible to have a cookie / session check and acording that to change included page or that page is loaded or not?<br /><br />Please help...tnx]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>Shadows</dc:creator>
			<pubDate>Fri, 09 May 2008 09:16:01 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/javascript-error-object-required-t88098.html</guid>
			<link>http://www.ozzu.com/programming-forum/javascript-error-object-required-t88098.html</link>
			<title>Javascript, Error: &quot;Object Required&quot;</title>
			<description><![CDATA[Im getting this error by double clicking the warning icon present in IEs window (bottom left).  It points to line 36 and &quot;Char 3&quot; whatever that Char 3 means is beyond me.<br /><br />Has anyone got an idea whats wrong with the following code.<br /><br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb63873" style="font-family: monospace;">&nbsp;<br />&nbsp;<br />function __isValidEmailAddr(email)<br />{<br />&nbsp; &nbsp; var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if (filter.test(email))<br />&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />}<br />&nbsp;<br />function __checkContactForm()<br />{<br />&nbsp; &nbsp; var _name = document.getElementById(name).value;<br />&nbsp; &nbsp; var _email = document.getElementById(email).value;<br />&nbsp; &nbsp; var _comments = document.getElementBy(comments).value;<br />&nbsp; &nbsp; var _errorTrigger = false;<br />&nbsp; &nbsp; var _errorMessage = ;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if ( _name =  )<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorTrigger = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorMessage += n~ You must provide a name;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; else if ( _name.length &lt; 3 )<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorTrigger = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorMessage += n~ You must provide a legitimate name;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if ( __isValidEmailAddr(_email) == false )<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorTrigger = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorMessage += n~ You must provide a real email address;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; if ( _comments =  )<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorTrigger = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorMessage += n~ You must provide a message;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; else if ( _comments.length &lt; 10 )<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorTrigger = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _errorMessage += n~ You must provide a legitimate message;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; if ( errorTrigger == true )<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; alert(nThe following error(s) were discovered prior to form submission.n + _errorMessage + nn);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; delete _name;<br />&nbsp; &nbsp; delete _email;<br />&nbsp; &nbsp; delete _comments;<br />&nbsp; &nbsp; delete _errorTrigger;<br />&nbsp; &nbsp; delete _errorMessage;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; return true;<br />&nbsp; &nbsp; <br />}<br />&nbsp;<br /></div></p></blockquote><br /><br />Whilst on the subject, can anyone recommend me a javascript debugger, Ive only IEs error messages to go on at the moment.]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>onlyican.com</dc:creator>
			<pubDate>Fri, 09 May 2008 09:02:38 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/iframe-javascript-hell-t88096.html</guid>
			<link>http://www.ozzu.com/programming-forum/iframe-javascript-hell-t88096.html</link>
			<title>iframe / Javascript hell!!!</title>
			<description><![CDATA[Hello all.<br /><br />In a nutshell<br /><br />I have a script which draws information from a MSSQL table, dumps into a JavaScript array.<br />JavaScript then shows the results, allowing for Filters / Orders and Pagination to be applied without page reload.<br /><br />I then have a iframe and Div which is hidden (dislay: none)<br /><br />When I click on a link, it runs some javascript which changes the display to block <br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb41680" style="font-family: monospace;">&nbsp;<br />document.getElementById(MyIFrame).style.display = &quot;block&quot;;<br />&nbsp;<br /></div></p></blockquote><br /><br />This works great.<br /><br />Then I have a link, which runs javascript which simply does<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb4490" style="font-family: monospace;">&nbsp;<br />parent.document.getElementById(MyIFrame).style.display = &quot;none&quot;;<br />&nbsp;<br /></div></p></blockquote><br /><br />The problem is, in FF (Both 2 and 3), when the Iframe is hidden, it reloads the iframe.<br />I know this as the Iframe calls a JavaScript function which currently has an alert, which pops up AFTER I have hidden the iframe.<br /><br />NOTE:<br />If I comment out that one which hides the iframe, it works fine (except the iframe still showing)<br /><br />WHY IS THIS HAPPENING!!!!<br /><br />The code is very long and complex so if you want to see, please state what part.<br /><br />Cheers in advance]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>argrafic</dc:creator>
			<pubDate>Thu, 08 May 2008 14:43:40 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-get-first-words-from-database-record-t88080.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-get-first-words-from-database-record-t88080.html</link>
			<title>PHP - Get first 5 words from database record</title>
			<description><![CDATA[Hello,<br /><br />I want to display the records from a table in the database but i dont want all the info printed on screen because there are columns that have long text, so I wanted to know how can I get the first 5-10 words from the column and print those on screen?<br /><br />Thanks!]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 3</description>
		</item>
				<item>
			<dc:creator>RazorMaster</dc:creator>
			<pubDate>Thu, 08 May 2008 12:29:30 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/save-date-format-into-mysql-t88076.html</guid>
			<link>http://www.ozzu.com/programming-forum/save-date-format-into-mysql-t88076.html</link>
			<title>Save date format into mysql</title>
			<description><![CDATA[Hi,<br /><br />I am using ZCal to input dates in my forms, but now I have a problem.<br />How do I update my sql DB?<br />What format do I use?<br /><br />The output date in the form is like:<br />Friday, May 15, 2008<br /><br />What format I must have in my sql DB field for this date?<br />How do I save this value in my db by php code?<br />If I need to output this value in other form, what code I must use?<br /><br />Ive tryed this format to insert into my db...<br /><br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb74053" style="font-family: monospace;">$date = date(&quot;n/j/Y&quot;, $info[post_date]);<br /></div></p></blockquote><br /><br />but in my db it shows:<br /><br />0000-00-00<br /><br />maybe my filed format is not the right...<br /><br />db_posts  post_date post_date INT( 30 ) NOT NULL <br /><br />Any idea? Any help?<br /><br />Thanks]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>jameson5555</dc:creator>
			<pubDate>Thu, 08 May 2008 12:11:32 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-upload-script-t88075.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-upload-script-t88075.html</link>
			<title>PHP upload script</title>
			<description><![CDATA[I did a search for this on Google and Ozzu and it looks like there are a ton of these out there, but I was wondering if anyone here has a favorite PHP script for doing simple uploads? Or do you guys just write one whenever you need it?<br /><br />Basically, I just want a browse button for people to be able to upload to a directory. It should also have enough security that I dont get a ton of spam or malicious files.]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>cancer10</dc:creator>
			<pubDate>Thu, 08 May 2008 05:08:40 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/bug-t88059.html</guid>
			<link>http://www.ozzu.com/programming-forum/bug-t88059.html</link>
			<title>Bug in JS ???</title>
			<description><![CDATA[Hi<br /><br />please consider the following JS code. This code will alert you with the value of the radio button that is selected. This code works perfectly fine..<br /><br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb86633" style="font-family: monospace;">&lt;script&gt;<br />function deletecID(){<br />&nbsp; &nbsp; &nbsp; &nbsp; for (i=0;i&lt;document.frmlist.intDeleteValue.length;i++){<br />&nbsp; &nbsp; &nbsp; &nbsp; if (document.frmlist.intDeleteValue[i].checked==true){<br />&nbsp; &nbsp; &nbsp; &nbsp; var deleteID =document.frmlist.intDeleteValue[i].value<br />&nbsp; &nbsp; &nbsp; &nbsp; alert(deleteID);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br />&nbsp;<br />&lt;/script&gt;<br />&nbsp;<br />&lt;form name=&quot;frmlist&quot;&gt;<br />&lt;input type=radio name=&quot;intDeleteValue&quot; value=&quot;1&quot;&gt;<br />&lt;input type=radio name=&quot;intDeleteValue&quot; value=&quot;2&quot;&gt;<br />&lt;input type=button &nbsp;onclick=&quot;deletecID()&quot;&gt; <br />&lt;/form&gt;<br /></div></p></blockquote><br /><br /><br />Now, take a look into the following code. This code does not work. Its the same code as above  but the only difference is that it just have one radio button in the form.<br /><br /><br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb91372" style="font-family: monospace;">&lt;script&gt;<br />function deletecID(){<br />&nbsp; &nbsp; &nbsp; &nbsp; for (i=0;i&lt;document.frmlist.intDeleteValue.length;i++){<br />&nbsp; &nbsp; &nbsp; &nbsp; if (document.frmlist.intDeleteValue[i].checked==true){<br />&nbsp; &nbsp; &nbsp; &nbsp; var deleteID =document.frmlist.intDeleteValue[i].value<br />&nbsp; &nbsp; &nbsp; &nbsp; alert(deleteID);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br />&nbsp;<br />&lt;/script&gt;<br />&nbsp;<br />&lt;form name=&quot;frmlist&quot;&gt;<br />&lt;input type=radio name=&quot;intDeleteValue&quot; value=&quot;1&quot;&gt;<br />&lt;input type=button &nbsp;onclick=&quot;deletecID()&quot;&gt; <br />&lt;/form&gt;<br /></div></p></blockquote><br /><br /><br />Any JS gurus here can tell if this is a bug in JS? Is there a solution to this?<br /><br />Thanx]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>delfinas</dc:creator>
			<pubDate>Thu, 08 May 2008 03:32:12 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/how-print-pdf-jpg-t88054.html</guid>
			<link>http://www.ozzu.com/programming-forum/how-print-pdf-jpg-t88054.html</link>
			<title>How to print pdf to jpg</title>
			<description><![CDATA[Can anyone explain how to print WORD format document to jpg file. Example I have word document  whit 30 page. I want print this pages into 30 jpg files page1.jpg, page2.jpg,  page30.jpg. Is it possible? <br /><a class="postlink" href="http://www.e-referatai.lt/darbas/lithuania_164.htm" rel="nofollow" target="_blank">http://www.e-referatai.lt/darbas/lithuania_164.htm</a>  this is example of this function click on &gt;Perirti darb opening pop put window with prewiew screen of Microsoft document. Thank you all for  help.]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>--&gt;gm&lt;--</dc:creator>
			<pubDate>Thu, 08 May 2008 03:18:09 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-include-included-file-t88052.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-include-included-file-t88052.html</link>
			<title>PHP include() in an included file</title>
			<description><![CDATA[Hi everyone,<br /><br />I have a quick question regarding the include statement in an included file.<br /><br />This is the directory structure I am working with<br /><img src="http://img363.imageshack.us/img363/5985/directorystructurecu1.png" alt="Image"><br /><br />The code in the index.php file is:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb12030" style="font-family: monospace;">&nbsp;<br />&lt;p&gt;This is the main page&lt;/p&gt;<br />&lt;?php include(includes/1.php); ?&gt;<br />&nbsp;<br /></div></p></blockquote><br /><br />The code in 1.php is:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb40405" style="font-family: monospace;">&nbsp;<br />&lt;p&gt;This is 1.php.&lt;/p&gt;<br />&lt;?php include(includes/subIncludes/2.php); ?&gt;<br />&lt;?php include(subIncludes/2.php); ?&gt;<br />&lt;!-- Both paths are working --&gt;<br />&nbsp;<br /></div></p></blockquote><br /><br />and the code in 2.php is:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb85576" style="font-family: monospace;">&nbsp;<br />&lt;p&gt;This is 2.php.&lt;/p&gt;<br />&nbsp;<br /></div></p></blockquote><br /><br />The output from index.php is:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb7417" style="font-family: monospace;">&nbsp;<br />This is the main page<br />&nbsp;<br />This is 1.php.<br />&nbsp;<br />This is 2.php.<br />&nbsp;<br />This is 2.php.<br />&nbsp;<br /></div></p></blockquote><br /><br />I dont understand how both include paths in 1.php are working, since the 1st include is relative to the main page and the 2nd is relative to the file being included.<br />I thought the path to the include file was relevant to the main file, but clearly both paths are working... <img src="http://www.ozzu.com/images/smilies/icon_question.gif" alt=":?:" title="Question"> <br /><br />Does anyone know whats going on?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
			</channel>
</rss>