<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>Developing Your Website (The Web Squeeze)</title>
	<description>Developing your website section on The Web Squeeze!</description>
	<link>http://www.thewebsqueeze.com/forum/</link>
	<pubDate>Fri, 04 Jul 2008 21:22:37 -0400</pubDate>
	<ttl>60</ttl>
	<image>
		<title>Developing Your Website (The Web Squeeze)</title>
		<url>http://www.thewebsqueeze.com/forum/favicon.ico</url>
		<link>http://www.thewebsqueeze.com/forum/</link>
	</image>
	<item>
		<title>Escrow System</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Escrow-System-t2008.html</link>
		<description><![CDATA[I am looking for an escrow system.<br /><br />It needs to do the following.<br /><br />Accept money from Paypal, MoneyBookers, Credit Card<br />Record Transactions<br />Assign money to user<br />Allow for users with money to make escrow payments to other users.<br />Send a withdrawl request to administrator when a user wants to withdraw funds.<br /><br />Does anyone know any existing open source scripts which do this? If not does anyone have tips on creating such a system?]]></description>
		<pubDate>Wed, 02 Jul 2008 09:43:59 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Escrow-System-t2008.html</guid>
	</item>
	<item>
		<title>Loading Stylesheets With Javascript</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Loading-Stylesheets-With-t1997.html</link>
		<description><![CDATA[I need to determine if the user has flash installed and if they do I need to display certain stylesheet. Otherwise do nothing.<br /><br />Does anyone know how I can achieve this?<br /><br />]]></description>
		<pubDate>Mon, 30 Jun 2008 10:45:43 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Loading-Stylesheets-With-t1997.html</guid>
	</item>
	<item>
		<title>Php Bbcode</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Bbcode-t1992.html</link>
		<description><![CDATA[Hey people <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> <br /><br />I am doing my nut in <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/tease.gif" style="vertical-align:middle" emoid=":tease:" border="0" alt="tease.gif" /> Basically on my website i have a blank for where my advertisers can write a description on what they are advertsing.  The only problem is my form doesn allow any styling so it looks very bland, no bold,italics,colour,returns etc, so i would like to add this functionality.<br /><br />Please please please help me i have been searching all over for a php script that will allo this but i just cannot find one, i know they must exist some where. If you know how to do it or where there is a script please let me know.<br /><br />Thanks for your help people.<br /><br />Andy]]></description>
		<pubDate>Sun, 29 Jun 2008 08:51:54 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Bbcode-t1992.html</guid>
	</item>
	<item>
		<title>My Php Contact Form Wont Work!</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/My-Php-Contact-Form-Wont-t1987.html</link>
		<description><![CDATA[i found this tutorial on google for a php contact for and it basicly just gave me the code so me being me thought " HAPPY DAYS NO WORK FOR ME! " oh how i was wrong! <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> i cant get it to work and i dont know why. all of the tuorials iv tryed havn't worked so its gotta be me doing somthing wrong. <br /><br />can anyone point out what im doing wrong please ?<br /><br />links:<br /><br /><a href='http://www.thewebsqueeze.com/forum/redirect.php?url=http%3A%2F%2Fwww.bruno89.co.uk%2Fcontact.html' rel='nofollow' target="_blank">http://www.bruno89.co.uk/contact.html</a><br /><a href='http://www.thewebsqueeze.com/forum/redirect.php?url=http%3A%2F%2Fwww.bruno89.co.uk%2Fmail.php' rel='nofollow' target="_blank">http://www.bruno89.co.uk/mail.php</a><br /><br />theres the codes i have.<br /><br />thanks people i realy should learn this huh lol <br />dave,]]></description>
		<pubDate>Fri, 27 Jun 2008 12:27:14 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/My-Php-Contact-Form-Wont-t1987.html</guid>
	</item>
	<item>
		<title>Jquery - Javascript Made Easy</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Jquery-Javascript-Made-t1985.html</link>
		<description><![CDATA[This is a discussion thread for the new article called <a href="http://www.thewebsqueeze.com/articles/introducing-jquery-javascript-library.html" target="_blank">jQuery - Javascript Made Easy</a><br /><br />Have questions or comments about this article, feel free to post them here!]]></description>
		<pubDate>Fri, 27 Jun 2008 07:20:14 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Jquery-Javascript-Made-t1985.html</guid>
	</item>
	<item>
		<title>Contact Help</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Contact-Help-t1980.html</link>
		<description><![CDATA[For a change i need some help lol <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><br /><br /><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><b>Contact Page</b><!--sizec--></span><!--/sizec--><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br /> &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;<br /> &lt;?php $page = 'contact'; ?&gt;<br /> &lt;head&gt;<br /> &lt;title&gt;Elektro GIBSON - Contact&lt;/title&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="styles.css" /&gt;<br /> &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;<br /> &lt;meta name="description" content="Elektro Gibson is a highly recommended and skilled Electricians company, servicing both commercial<br /> and private client, based in M&uuml;nchem, Germany." /&gt;<br /> &lt;meta name="keywords" content="Electrician, Electrical Installer, M&uuml;nchen, Germany, cheap electrician, light fittings, complete rewire, speaker systems, skilled, expert, advice" /&gt;<br /> <br /> &lt;/head&gt;<br /> <br /> &lt;body id="top"&gt;<br /> <br /> &lt;div id="container"&gt;<br /> <br /> <br /> &lt;div id="branding"&gt;<br /> &lt;img src="i/header_&lt;?php echo(rand(1,4)); ?&gt;.png" alt="Welcome to Elektro Gibson, Electrical Engineer based in Munich, Germany" title="Elektro Gibson - Electrical Engineer, Electrical Installer based in Munich, Germany" /&gt;<br /> <br /> &lt;h1&gt;&lt;a href="#" title="Phil Gibson - Electrician, Electrical Engineer, Electrical Installer based in Munich, Germany"&gt;Phil Gibson - Electrician, Electrical Engineer, Electrical Installer based in Munich, Germany&lt;/a&gt;&lt;/h1&gt;<br /> <br /> &lt;p&gt;&lt;q&gt;Expert work, Electrical Engineering, M&uuml;nchen, Deutschland, highly reccommended, cheap electrician, quality work.&lt;/q&gt;&lt;/p&gt;<br /> <br /> &lt;/div&gt;<br /> <br /> &lt;?php include("nav.php"); ?&gt;<br /> <br /> &lt;hr /&gt;<br /> <br /> &lt;div id="content"&gt;<br /> &lt;div id="content-main"&gt;<br /> <br /> <br /> &lt;h2&gt;Contact&lt;/h2&gt;<br /> <br /> &lt;div&gt;<br /> &lt;form method="post" action="contactForm.php" enctype="multipart/form-data"&gt;&lt;div&gt;<br /> <br /> &lt!-- Let's get their name //--&gt;<br /> <br /> &lt;select name="title"&gt;<br /> &lt;option value="mr"&gt;Mr&lt;/option&gt;<br /> &lt;option value="mrs"&gt;Mrs&lt;/option&gt;<br /> &lt;option value="miss"&gt;Miss&lt;/option&gt;<br /> &lt;option value="ms"&gt;Ms&lt;/option&gt;<br /> &lt;/select&gt;<br /> <br /> <br /> <br /> <br /> <br /> First Name: <br /> <br /> &lt;input type="text" name="firstname" /&gt;<br /> <br /> <br /> <br /> Surname:<br /> <br /> &lt;input type="text" name="lastname" /&gt;<br /> <br /> <br /> <br /> <br /> Email address:<br /> <br /> &lt;input type="text" name="email" /&gt;<br /> <br /> <br /> <br /> Phone number:<br /> <br /> &lt;input type="text" name="phone" /&gt;<br /> <br /> <br /> <br /> <br /> How did you hear about us?<br /> <br /> <br /> &lt;select name="source"&gt;<br /> &lt;option value="searchengine"&gt;Search Engine&lt;/option&gt;<br /> &lt;option value="phonedirectory"&gt;Phone Directory&lt;/option&gt;<br /> &lt;option value="personal"&gt;Personal Recommendation&lt;/option&gt;<br /> &lt;/select&gt;<br /> <br /> <br /> <br /> <br /> <br /> What service(s) are you interested in?<br /> <br /> (Tick all that apply)<br /> <br /> <br /> <br /> &lt;input type="checkbox" name="services[]" value="wire" /&gt;<br /> Wiring (Interior/Exterior)<br /> <br /> &lt;input type="checkbox" name="services[]" value="solar" /&gt;<br /> Solar Installation<br /> <br /> &lt;input type="checkbox" name="services[]" value="sound" /&gt;<br /> Sound Systems<br /> <br /> &lt;input type="checkbox" name="services[]" value="lights" /&gt;<br /> Lighting features<br /> <br /> &lt;input type="checkbox" name="services[]" value="gens" /&gt;<br /> Generator Installations<br /> <br /> &lt;input type="checkbox" name="services[]" value="other" /&gt;<br /> Other (please specify)<br /> <br /> <br /> <br /> <br /> <br /> Other Comments:<br /> <br /> <br /> <br /> &lt;textarea rows="10" cols="40"&gt;<br /> Message.....<br /> &lt;/textarea&gt;<br /> <br /> <br /> <br /> <br /> <br /> &lt;input type="submit" name="submit" value="Send!" /&gt;<br /> <br /> <br /> <br /> <br /> &lt;/div&gt;&lt;/form&gt; &lt;/div&gt;<br /> <br /> &lt;/div&gt;<br /> <br /> &lt;div id="content-sub"&gt;<br /> <br /> &lt;h2&gt;Details&lt;/h2&gt;<br /> &lt;ul&gt;<br /> &lt;li&gt;Elektroinstallation&lt;/li&gt;<br /> &lt;li&gt;Riezlerweg 46&lt;/li&gt;<br /> &lt;li&gt;80997 M&uuml;nchen&lt;/li&gt;<br /> &lt;li&gt;Tel: (089) 1434 7490&lt;/li&gt;<br /> &lt;li&gt;Fax: (089) 1434 6023&lt;/li&gt;<br /> &lt;li&gt;Mobil: 0172/821 0755&lt;/li&gt;<br /> &lt;li&gt;&nbsp;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;/li&gt;<br /> &lt;/ul&gt;<br /> <br /> &lt;/div&gt;<br /> <br /> &lt;/div&gt;<br /> <br /> &lt;hr /&gt;<br /> <br /> &lt;div id="nav-supp"&gt;<br /> &lt;p&gt;&lt;a href="java script:scroll(0,0);"&gt;Back to Top&lt;/a&gt; &lt;/p&gt;<br /> &lt;/div&gt;<br /> <br /> &lt;div id="siteinfo"&gt;<br /> &lt;p&gt;Valid &lt;a href="http://validator.w3.org/check/referer" title="Validate this document"&gt;XHTML&lt;/a&gt;, &lt;a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validate this CSS"&gt;CSS&lt;/a&gt; | Site design by &lt;a href="http://www.craigmoran.co.uk" title="Site designed by Craig Moran"&gt;Craig Moran&lt;/a&gt;&lt;/p&gt;<br /> &lt;/div&gt;<br /> <br /> &lt;/div&gt;<br /> <br /> <br /> &lt;/body&gt;<br /> &lt;/html&gt;</div><br />  <br /><b><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo-->The PHP<!--sizec--></span><!--/sizec--></b><br /><br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>&lt;?php<br /> /***Code created by Luke &lt;rakuli&gt; Dingle for use on www.thewebsqueeze.com<br />	 This script may be modified and used but is provided as is without warranty or guarantee.<br />	 <br />	 It is not mandatory but a link back to <a href="http://www.openthource.com" target="_blank">http://www.openthource.com</a> would be cool<br />	 Have fun! */<br /> <br /> /**** Some configurable variables, will put them up the top here so I don't hurt my back bending down in the code to get them later****/<br /> <br /> $returnURL = 'contacterror.php';										 // The url to send the user back to if something went wrong<br /> $successURL = 'yes.php';										// The url to send the user to if all goes well<br /> <br /> $allowedReferer = array($returnURL, 'http://www.craigmoran.co.uk/');		 // What URL's would you like to allow to use this script? If the form is sent from elsewhere we can givem the boot<br /> $arrivalMethod = 'post';													 // What method will the form be sent using? Choice of 'get', 'post' or 'request' (request is a combination of get and post variables in case you wanted the option to use both)<br /> $submitName  = 'submit';													 // What is the name of the submit button?<br /> <br /> $Temail	 = 'unitedreds@hotmail.co.uk';							// Change it to anything you like -- is where the email will be sent to<br /> $TemailBcc  = '';									 // If you want to copy anyone in on all emails sent from the form, add them here separated by commas<br /> $Semail		= '"Contact Form" &lt;%s&gt;';		// The subject line of the email %s will be used in sprintf() to add the senders email as the "from" contact<br /> <br /> $mailerName = 'Website Contact Form';										// Name the x-mailer, sometimes a good idea to emulate a popular email client name to avoid junk filters<br /> <br /> <br /> <br /> $fVars		= ($arrivalMethod == 'post') ? $_POST : ($arrivalMethod == 'get' ? $_GET : $_REQUEST); // Store a reference to where the variables are coming from<br /> <br /> #	First things first, well actually, it's the second thing if you count the conifguration variables above as the first thing<br /> #	Check to make sure that the 'submit' button has been sent and has a value -- if not? Send them to the $return URL<br /> <br /> if (!isset($fVars[$submitName]) || empty($fVars[$submitName]))<br /> {<br />	 header("Location: $returnURL");<br />	 exit();<br /> }<br /> <br /> #	Next, we'll check if the user has submitted this form from one of the allowed referers<br /> #	If not, we'll give them a fruit basket and send them on their way<br /> <br /> $pattern = str_replace('&#092;|', '|', preg_quote(implode('|', $allowedReferer), '/'));// Implode the referer array into a regex string this|this|this|this<br /> <br /> <br /> if (!preg_match('/^(' . $pattern . ').*/',$_SERVER['HTTP_REFERER']))<br /> {<br />	 header("Location: $returnURL");<br />	 exit();<br /> }<br /> <br /> <br /> // If we didn't receive the correct input from the submit button, we'll send them away straight awa<br /> <br /> <br /> <br /> /*<br /> #	This is the array of form fields that PHP is expecting to receive, the structure is as follows<br /> <br />	 $formInputs = array (formInputName =&gt; arrayOfDetails (	0 =&gt; displayed name of field (string), <br />															 1 =&gt; is element mandatory? (boolean), <br />															 2 =&gt; allowed values (array(mixed)), <br />															 3 =&gt; function to call if required (string), <br />															 4 =&gt; input is an array of values? (boolean),<br />															 5 =&gt; customised error message (string)<br />														   )<br />						 )														  <br /> */<br /> <br /> <br /> $formInputs = array('title'		 =&gt; array('Title', true, array('mr', 'mrs', 'miss', 'ms')),<br />					 'firstname'	 =&gt; array('First Name', true),<br />					 'lastname'		=&gt; array('Last Name', true),<br />					 'email'			=&gt; array('Email Address', true, 3 =&gt; 'check_email', 5 =&gt; 'Your email address is invalid!'),<br />					 'phone'			=&gt; array('Phone Number', false, 3 =&gt; 'ctype_digit', 5 =&gt; 'Phone field may only contain numbers'),<br />					 'source'		=&gt; array('How did they hear about us?', false, array('searchengine', 'phonedirectory', 'personal')),<br />					 'services'		=&gt; array('Services required', true, array('wire', 'solar','sound', 'lights', 'gens', 'other'), 4 =&gt; true),<br />					 );<br /> <br /> <br /> #	It's time to loop through all the values and check that they fit the requirements defined<br /> #	in the $formInputs array<br /> <br /> <br /> $errors		 = array();		 // Sumfins up? Shove it in the $errors array to berate the user with later<br /> $errorMsg		= 'Please check that you entered &lt;strong&gt;%s&lt;/strong&gt; correctly'; // This is the default, legal department approved standard error message<br /> <br /> $messageArray	= array();		 // This will hold all the parts of the email message as the form fields validate<br /> <br /> <br /> # So we don't loop through $_POST, $_GET or $_REQUEST varibales unnecessarily, loop through the forminputs array and check each that way<br /> foreach ($formInputs as $pk =&gt; $pa)<br /> {<br /> <br />	 // The first check that will render the input immediately invalid is<br />	 // checking against the "is required?" directive of the $formInputs array<br />	 if (!isset($fVars[$pk]) && $pa[1] === true)<br />	 {<br />		 // Is there a custom error? If not, just use the default one<br /> <br />		 $errors[] = $pa[5] ? $pa[5] : sprintf($errorMsg, $pa[0]);<br />		 continue;<br />	 }<br />	 <br /> <br /> <br />	 // This next check is for form fields that have numerous available options<br />	 // that have been sent to us as an array.<br />	 <br />	 <br />	 if ($pa[4] === true && is_array($fVars[$pk]) && count($fVars[$pk])) {<br />	 <br />		 $msg = ''; // As this will be more than just a one-line message, set up the variable to hold the string<br />		 <br />		 // Loop through each value, if there is a list of allowed values<br />		 // check that it is in that array, otherwise add all of them to $msg<br />		 foreach($fVars[$pk] as $val)<br />		 {<br />			 $msg .= isset($pa[2]) /* List of allowed values? */ ? in_array($val, $pa[2]) ? "&#092;t&#092;t" . htmlentities($val) . "<br /> &#092;n" : '' <br />								   /* No List of defaults */ : "&#092;t&#092;t" . htmlentities($val) . "<br /> &#092;n";<br />		 }<br />		 <br />		 // If we've been sent a bung array or an array of useless political rants<br />		 // $msg will be empty, this means that it will trigger an error if it is<br />		 // a mandatory value<br />		 if (!empty($msg))<br />			 $messageArray[] = '&lt;strong&gt;' . $pa[0] . "&lt;/strong&gt; : <br /> &#092;n&#092;n<br /> " . $msg;<br />		 else if ($pa[1] === true) <br />			 $errors[] = $pa[5] ? $pa[5] : sprintf($errorMsg, $pa[0]);<br />		 <br />		 continue;<br />	 <br />	 // If the value is not an array and also a mandatory element, this will spark an error message<br />	 <br />	 } else if ($pa[1] === true && $pa[4] === true) {<br />		 <br />		 $errors[] = $pa[5] ? $pa[5] : sprintf($errorMsg, $pa[0]);<br />		 continue;<br />	 } <br /> <br />	 <br />	 // Form fields that have a list of allowed values eg. select elements or radio buttons<br />	 // This check ensures the sent value is one of those allowed<br />	 <br />	 if (isset($pa[2]))<br />	 {<br />		 // Is the value in the array? If yes, add it to the $message array<br />		 if (in_array($fVars[$pk], $pa[2]))<br />		 {<br />			 $messageArray[] = '&lt;strong&gt;' . $pa[0] . '&lt;/strong&gt; : ' . htmlentities($fVars[$pk]);<br />		 <br />		 // Oh no!!, it's just some crazy sales pitch from an entrepeneurial spammer, that means error message time<br />		 // Only if its a mandatory value though<br />		 } else if ($pa[1] === true) <br />			 $errors[] = $pa[5] ? $pa[5] : sprintf($errorMsg, $pa[0]);<br />		 <br />		 continue;<br />	 }<br />	 <br />	 // Now we're dealing with values typed in by the user -- gasp!!<br />	 // If we trim the value of whitespace, we can see if we've <br />	 // just been sent a string of spaces<br />	 $fVars[$pk] = trim($fVars[$pk]); <br /> <br />	 if (empty($fVars[$pk]) && $pa[1] === true)<br />	 {<br />		 // Mandatory value? Error it<br />		 $errors[] = $pa[5] ? $pa[5] : sprintf($errorMsg, $pa[0]);<br />		 continue;<br />		 <br />		 // Empty but not mandatory? Just turn the other cheek<br />	 } else if (empty($fVars[$pk]))<br />		 continue;<br /> <br /> <br /> <br />	 // If this is a value we would like to perform an additional check on<br />	 // via a callback function (which returns true for a good value and false for a bad one<br />	 if (isset($pa[3]))<br />	 {<br />		 <br />		 if ($pa[3]($fVars[$pk]))<br />			 // Nice one brudda! Add it to the message<br />			 $messageArray[] = '&lt;strong&gt;' . $pa[0] . '&lt;/strong&gt; : ' . htmlentities($fVars[$pk]);<br />			 <br />			 // Oh? I guess that you have a dodgy character in there somewhere so if this is a mandatory value<br />			 // You is gonna get an error message<br />		 else if ($pa[1] == true)<br />			 $errors[] = sprintf($errorMsg, $pa[0]);<br />		 <br />		 continue;<br />	 }<br />	 <br />	 // Yawn!... just a boring old input with no special characteristics -- just add it to the message please.<br />	 <br />	 $messageArray[] = '&lt;strong&gt;' . $pa[0] . '&lt;/strong&gt; : ' . htmlentities($fVars[$pk]);<br />	 <br /> }<br /> <br /> <br /> <br /> <br /> #	No Errors? Check - $MessageArray has some values? if check, then we can set up the email<br /> <br /> if (!count($errors) && count($messageArray)) <br /> {<br /> <br />	 // Take the subject declared above and add the sender's email to it<br />	 // If for some reason, this form is not getting an email off the user<br />	 // we can ignore it<br />	 if (isset($fVars['email']))<br />		 $Semail = sprintf($Semail, $fVars['email']);<br /> <br />	 // Because we are creating a MIME email (HTML & Plain Text) we need to define some boundaries<br />	 // To separate the multiple parts of the message... <br />	 // Let's do that now and create an outer and inner boundary<br />	$ob = md5(time() . 'masonboundary');<br />	$ib = md5(time() . 'masonboundary2');<br />	<br />	<br />	$headers = "From: ".$Semail."&#092;n";  // Add the subject (even if it has no sender email address)<br />	<br />	if (!empty($TemailBcc)) $headers .= "Bcc: ".$TemailBcc."&#092;n"; // Carbon copy in the required users<br />	<br />	if (isset($fVars['email']))<br />	{	// Set the reply to as the user's email (if available)<br />			$headers .= "Reply-To: &lt;". $fVars['email']."&gt;&#092;n"; <br />		   $headers .= "Return-Path: &lt;" . $fVars['email'] . "&gt;&#092;n";<br />	}<br />	$headers .= 'Date: ' . gmdate('D, d M Y H:i:s') . ' +0000' . "&#092;n"; // Um, what day is it?<br />	$headers .= 'X-Mailer: ' . $mailerName . "&#092;n";						// Set the mailing application name, <br />	<br />	$headers .= 'Mime-Version: 1.0' . "&#092;n";							// Multi type MIME -- hoorays<br />	$headers .= 'Content-Type: multipart/alternative; boundary="' . $ob . '"' . "&#092;n"; // Define the boundary<br />	$headers .= 'Content-Transfer-Encoding: 7bit' . "&#092;n";<br />	<br /> <br />	 // Let's start the content.. this is some very sloppy HTML, you can correct if you like<br />	<br />	$content = "&lt;title&gt;$Semail&lt;/title&gt;&#092;n&#092;n&#092;n";<br />	$content .= "&lt;body style='font-family: verdana; font-size: 9pt;'&gt;&#092;n&#092;n";<br />	$content .= "&lt;h1 style='font-size:1.1em'&gt;Someone Has Contacted you!&lt;/h1&gt;&#092;n&#092;n&#092;n";<br />	<br />  // loop through the messageArray and add each line to the email<br />  <br />  foreach ($messageArray as $msg)<br />	  $content .= $msg . "&#092;n&#092;n<br /> <br /> ";   <br />   <br />	$content .= "Your Sincerely,&#092;n&#092;n<br /> <br /> "; // Be polite and sign off <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br />	$content .= "Your Website";<br />	<br />	<br />	$message = strip_tags($content) . "&#092;n" . '--' . $ob . "&#092;n"; // Add the HTML part boundary and start the message<br />	<br />	<br />	// Plain text first<br />	<br />	<br />	$message .= 'Content-Type: text/plain; charset=iso-8859-1' . "&#092;n";<br />	$message .= 'Content-Transfer-Encoding: 7bit' . "&#092;n&#092;n";<br />	$message .= strip_tags($content) . "&#092;n" . '--' . $ob . "&#092;n";<br />	<br />	// Now the HTML part<br />   <br />	$message .= 'Content-Type: text/html; charset=charset=iso-8859-1' . "&#092;n";<br />	$message .= 'Content-Transfer-Encoding: 7bit' . "&#092;n&#092;n";<br />	$message .= $content . "&#092;n" . '--' . $ob . '--';<br /> <br />	<br />	mail($Temail, $subject, $message, $headers); <br />	<br />	// Givem their kudos<br />	header('Location: ' . $successURL);<br /> <br /> }<br /> <br /> function check_email($email) <br /> {  // First, we check that there's one @ symbol, <br />   // and that the lengths are right.<br />   if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {<br />	 // Email invalid because wrong number of characters <br />	 // in one section or wrong number of @ symbols.<br />	 return false;<br />   }<br />   // Split it into sections to make life easier<br />   $email_array = explode("@", $email);<br />   $local_array = explode(".", $email_array[0]);<br />   for ($i = 0; $i &lt; sizeof($local_array); $i++) {<br />	 if<br /> (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_&#96;{|}~-][A-Za-z0-9!#$%&<br /> &#8618;'*+/=?^_&#96;{|}~&#092;.-]{0,63})|(&#092;"[^(&#092;&#092;|&#092;")]{0,62}&#092;"))$",<br /> $local_array[$i])) {<br />	   return false;<br />	 }<br />   }<br />   // Check if domain is IP. If not, <br />   // it should be valid domain name<br />   if (!ereg("^&#092;[?[0-9&#092;.]+&#092;]?$", $email_array[1])) {<br />	 $domain_array = explode(".", $email_array[1]);<br />	 if (sizeof($domain_array) &lt; 2) {<br />		 return false; // Not enough parts to domain<br />	 }<br />	 for ($i = 0; $i &lt; sizeof($domain_array); $i++) {<br />	   if<br /> (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|<br /> &#8618;([A-Za-z0-9]+))$",<br /> $domain_array[$i])) {<br />		 return false;<br />	   }<br />	 }<br />   }<br />   return true;<br /> }<br /> <br /> <br /> if (count($errors))<br /> {<br /> ?&gt;<br /> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br /> &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br /> &lt;head&gt;<br /> &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;<br /> &lt;title&gt;Some Bad Things Went Down&lt;/title&gt;<br /> &lt;/head&gt;<br /> <br /> &lt;body&gt;<br /> &lt;?php<br />	 echo '&lt;div style="border: solid 1px red;padding: 2em;"&gt;<br />		 &lt;h1 style="font-size: 1.2em;"&gt;Some Errors Occurred&lt;/h1&gt;<br />		 &lt;ul&gt;';<br />	 <br />	 foreach ($errors as $err)<br />		 echo '&lt;li&gt;', $err, '&lt;/li&gt;';<br />		 <br />		 echo '&lt;/ul&gt;<br />		 &lt;a href="', $returnURL , '" onclick="window.history.back(); return false;"&gt;Go Back and try again&lt;/a&gt;<br />		 &lt;/div&gt;';<br /> ?&gt;<br /> &lt;/body&gt;&lt;/html&gt;<br /> &lt;?php<br /> }<br /> ?&gt;</div><br /> <br />Sorry about all the code, (we need to get a scrolling code box lol), what happens is whenever i try to send the form it goes straight to the error page. Any thoughts?<br /><br />Thanks again<br /><br />Craig]]></description>
		<pubDate>Thu, 26 Jun 2008 17:45:19 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Contact-Help-t1980.html</guid>
	</item>
	<item>
		<title>Php Forms.. Lol...</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Forms-Lol-t1955.html</link>
		<description><![CDATA[Okay yo PHP Guru's lol... I need MAJOR help..  I have tried creating a php form to email and i'm getting no where!!!!!! I can't figure otu hwo to email them. and some peopel are even saying i've done it totally wrong, LOL..Here is the coding...<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;html&#62; <br />&#60;head&#62; <br />&#60;title&#62;TITLE HERE&#60;/title&#62; <br />&#60;/head&#62; <br />&#60;body&#62; <br />&#60;font size=&#34;20&#34;&#62;&#60;p style=&#34;text-align&#58;center&#34;&#62;Staff Application&#60;/p&#62;&#60;/font&#62;<br />&#60;form method=&#34;post&#34; action=&#34;sendemail.php&#34; method=&#34;post&#34;&#62;<br />First Name&#58; &#60;input type=&#34;text&#34; size=&#34;20&#34; maxlength=&#34;40&#34; name=&#34;Fname&#34;&#62;&#60;br /&#62;<br />Last Name&#58;&nbsp;&nbsp;&#60;input type=&#34;text&#34; size=&#34;20&#34; maxlength=&#34;40&#34; name=&#34;Lname&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Valid E-mail Address&#58;&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;50&#34; maxlength=&#34;100&#34; name=&#34;email&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Gender&#58;&#60;br /&#62;<br />Male&#58;&#60;input type=&#34;radio&#34; value=&#34;Male&#34; name=&#34;gender&#34;&#62;<br />Female&#58;&#60;input type=&#34;radio&#34; value=&#34;Female&#34; name=&#34;gender&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Age&#58;&#60;br /&#62;<br />&#60;select name=&#34;age&#34;&#62;<br />&#60;option value=&#34;13-18&#34;&#62;13-18&#60;/option&#62;<br />&#60;option value=&#34;19-25&#34;&#62;19-25&#60;/option&#62;<br />&#60;option value=&#34;26-32&#34;&#62;26-32&#60;/option&#62;<br />&#60;option value=&#34;33-41&#34;&#62;33-41&#60;/option&#62;<br />&#60;option value=&#34;42-48&#34;&#62;42-48&#60;/option&#62;<br />&#60;option value=&#34;49-54&#34;&#62;49-54&#60;/option&#62;<br />&#60;option value=&#34;55-61&#34;&#62;55-61&#60;/option&#62;<br />&#60;option value=&#34;62-68&#34;&#62;52-68&#60;/option&#62;<br />&#60;option value=&#34;69-75&#34;&#62;69-75&#60;/option&#62;<br />&#60;option value=&#34;76-82&#34;&#62;76-82&#60;/option&#62;<br />&#60;option value=&#34;83+&#34;&#62;83+&#60;/option&#62;&#60;/select&#62;<br />&#60;br /&#62;<br />&#60;br /&#62;<br />What state/province are you in?&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;25&#34; maxlength=&#34;40&#34; name=&#34;location&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Are you a Christian?&#60;br /&#62;<br />&#60;select name=&#34;christian&#34;&#62;<br />&#60;option value=&#34;Yes&#34;&#62;Yes&#60;/option&#62;<br />&#60;option value=&#34;No&#34;&#62;No&#60;/option&#62;<br />&#60;/select&#62;<br />&#60;br /&#62;<br />&#60;br /&#62;<br />Please check all that apply to you&#58;&#60;br /&#62;<br />&#60;input type=&#34;checkbox&#34; value=&#34;a College Student&#34; name=&#34;etc&#91;&#93;&#34;&#62;College Student<br />&#60;input type=&#34;checkbox&#34; value=&#34;a High-School Student&#34; name=&#34;etc&#91;&#93;&#34;&#62;High-School Student<br />&#60;input type=&#34;checkbox&#34; value=&#34;a Middle School/Jr. High Student&#34; name=&#34;etc&#91;&#93;&#34;&#62;Middle School/Jr. High Student&#60;br /&#62;<br />&#60;input type=&#34;checkbox&#34; value=&#34;Out of School&#34; name=&#34;etc&#91;&#93;&#34;&#62;Out of School<br />&#60;input type=&#34;checkbox&#34; value=&#34;Unemployed&#34; name=&#34;etc&#91;&#93;&#34;&#62;Unemployed<br />&#60;input type=&#34;checkbox&#34; value=&#34;Employed&#34; name=&#34;etc&#91;&#93;&#34;&#62;Employed&#60;br /&#62;<br />&#60;input type=&#34;checkbox&#34; value=&#34;Retired&#34; name=&#34;etc&#91;&#93;&#34;&#62;Retired&#60;br /&#62;<br />&#60;br /&#62;<br />How long have you been a member of NBJF?&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;25&#34; maxlength=&#34;40&#34; name=&#34;current&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Why do you want to be apart of the NBJF Staff?&#58;&#60;br /&#62;<br />&#60;textarea rows=&#34;5&#34; cols=&#34;40&#34; name=&#34;whyonstaff&#34; wrap=&#34;physical&#34;&#62;&#60;/textarea&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />What/how can you contribute to NBJF?&#60;br /&#62;<br />&#60;textarea rows=&#34;5&#34; cols=&#34;40&#34; name=&#34;howcanyou&#34; wrap=&#34;physical&#34;&#62;&#60;/textarea&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />How often do you have access to the internet?&#58;&#60;br /&#62;<br />&#60;select name=&#34;howmany&#34;&#62;<br />&#60;option value=&#34;Less than 6 hrs. a day&#34;&#62;Less than 6 hrs. a day&#60;/option&#62;<br />&#60;option value=&#34;2-3 times&#34;&#62;2-3 times&#60;/option&#62;<br />&#60;option value=&#34;6+ times&#34;&#62;6+ times&#60;/option&#62;<br />&#60;option value=&#34;Off and on throughout the day&#34;&#62;Off and on throughout the day&#60;/option&#62;&#60;/select&#62;&#58;&#60;br /&#62;<br />&#60;br /&#62;<br />MSN/Windows Live Messenger&#58;&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;40&#34; maxlength=&#34;50&#34; name=&#34;msn&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Yahoo Messenger&#58;&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;40&#34; maxlength=&#34;50&#34; name=&#34;yahoo&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />AIM&#58;&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;40&#34; maxlength=&#34;50&#34; name=&#34;aim&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />Skype&#58;&#60;br /&#62;<br />&#60;input type=&#34;text&#34; size=&#34;40&#34; maxlength=&#34;50&#34; name=&#34;skype&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;input type=&#34;submit&#34; value=&#34;Submit&#34; name=&#34;submit&#34;&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;/form&#62;<!--c2--></div><!--ec2--><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;html&#62;<br />&#60;head&#62;<br />&#60;title&#62;&#60;/title&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;?php<br /><br />$to = &#34;admin@newbreedjesusfreaks.com&#34;;<br />$subject = &#34;Staff Application&#34;;<br />$message = &#34;<br />&#60;b&#62;Name&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$Fname&#34;&#93;; &#91;&#34;$Lname&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Valid E-mail Address&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;email&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Gender&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$gender&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Age&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$age&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Location&#58;&#60;/b&#62;&#60;br /&#62;&#60;php echo $_POST&#91;&#34;$location&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Am I a Christian?&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$christian&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;b&#62;I am&#58;&#60;/b&#62;&#60;br /&#62;&#60;php echo $_POST foreach&#91;&#34;$etc as $e&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;How long have I been a member of NBJF?&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$current&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Why I would like to be on the NBJF Staff.&#60;/b&#62;&#60;br /&#62;&#60;php echo $_POST&#91;&#34;$whyonstaff&#34;&#93;' ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />echo &#34;&#60;b&#62;What/how can I contribute to NBJF?&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$howcanyou&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;How often I am online.&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$howmany&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;MSN/Windows Live Messenger&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$msn&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Yahoo Messenger&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$yahoo&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;AIM&#58;&#60;/b&#62;&#60;br /&#62;&#60;?php echo $_POST&#91;&#34;$aim&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#60;br /&#62;<br />&#60;b&#62;Skype&#58;&#60;/b&#62;&#60;br /&#62;&#60;php echo $_POST&#91;&#34;$skype&#34;&#93;; ?&#62;&#60;br /&#62;<br />&#34;;<br /><br />?&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 23 Jun 2008 21:48:58 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Forms-Lol-t1955.html</guid>
	</item>
	<item>
		<title>Again Another Asp Problem (upload)</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Again-Another-Asp-Problem-t1945.html</link>
		<description><![CDATA[Hi,<br /><br />I can't get an upload function to work on this website, and as I stated before, I don't know a thing about ASP, so was hoping you people could help me out.  Here is the error I am receiveing:<br /><br /><b>An error occurred saving the image file to disk: Invalid procedure call or argument<br /></b><br />Please find below the code I have, so if anyone could help I would be massively grateful:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;% @ Language = VBScript %&#62;<br />&#60;%<br />'Option Explicit<br /><br />With Response<br /> .Buffer = True<br /> .Expires = 0<br /> .Clear<br />End With<br /><br /><br />Function DeleteImages&#40;&#41;<br />on error resume next<br />if strOldImageName &#60;&#62; &#34;no_picture.gif&#34; then<br /> if strOldImageName &#60;&#62; &#34;awaitingPic.jpg&#34; then<br />&nbsp;&nbsp;if strOldThumb &#60;&#62; &#34;no_pictureSM.gif&#34; then<br />&nbsp;&nbsp; if strOldThumb &#60;&#62; &#34;awaitingPicSM.jpg&#34; then<br />&nbsp;&nbsp;&nbsp;&nbsp;if strOldImageName &#60;&#62; oFile.FileName then<br />&nbsp;&nbsp;&nbsp;&nbsp; 'if they are not the same name as the other 2 images, which if we delete, will stop the other ones from being shown<br />&nbsp;&nbsp;&nbsp;&nbsp; if strOldImageName &#60;&#62; otherPic2 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if strOldImageName &#60;&#62; otherPic3 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if strOldThumb &#60;&#62; otherThumb2 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if strOldThumb &#60;&#62; otherThumb3 then<br /> <br />' James code from here which will delete the image file b4 the recordset entry.<br /> Dim File<br /> Set File = CreateObject&#40;&#34;Scripting.FileSystemObject&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim ImagePath<br />&nbsp;&nbsp; ImagePath = Server.MapPath&#40;&#34;/user_images&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImagePath = ImagePath & &#34;&#092;&#34; & strOldImageName<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;&nbsp; File.FileExists&#40;ImagePath&#41; = true then <br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp; File.DeleteFile&#40;ImagePath&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;<br /> Set File = nothing<br />&nbsp;&nbsp; <br />&nbsp;&nbsp; Set File2 = CreateObject&#40;&#34;Scripting.FileSystemObject&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim ImagePath2<br />&nbsp;&nbsp; ImagePath2 = Server.MapPath&#40;&#34;/user_images&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ImagePath2 = ImagePath2 & &#34;&#092;&#34; & strOldThumb<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File2.DeleteFile&#40;ImagePath2&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;&nbsp; File2.DeleteFile&#40;ImagePath2&#41; = true then <br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp; File2.DeleteFile&#40;ImagePath2&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;end if<br /> Set File2 = nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp; end if<br />&nbsp;&nbsp;end if<br /> end if<br />end if<br /><br />end function<br /><br />strPicNum = request.QueryString&#40;&#34;Picture&#34;&#41;<br /><br />If strPicNum = &#34;1&#34; then <br /> strPic = &#34;Pic1&#34;<br /> strThumb = &#34;Thumb1&#34;<br /> otherPic2 = &#34;Pic2&#34;<br /> otherThumb2 = &#34;Thumb2&#34;<br /> otherPic3 = &#34;Pic3&#34;<br /> otherThumb3 = &#34;Thumb3&#34;<br />End if<br />If strPicNum = &#34;2&#34; then <br /> strPic = &#34;Pic2&#34;<br /> strThumb = &#34;Thumb2&#34;<br /> otherPic2 = &#34;Pic1&#34;<br /> otherThumb2 = &#34;Thumb1&#34;<br /> otherPic3 = &#34;Pic3&#34;<br /> otherThumb3 = &#34;Thumb3&#34;<br />End if<br />If strPicNum = &#34;3&#34; then <br /> strPic = &#34;Pic3&#34;<br /> strThumb = &#34;Thumb3&#34;<br /> otherPic2 = &#34;Pic1&#34;<br /> otherThumb2 = &#34;Thumb1&#34;<br /> otherPic3 = &#34;Pic2&#34;<br /> otherThumb3 = &#34;Thumb2&#34;<br />End if<br /><br />strUserID = Request.cookies&#40;&#34;AuthCode&#34;&#41;&#40;&#34;UserID&#34;&#41;<br />strUserName = Request.cookies&#40;&#34;AuthCode&#34;&#41;&#40;&#34;UserName&#34;&#41;<br />%&#62;<br /><br />&lt!-- #INCLUDE FILE = &#34;obj_FileUpload_beta_full.asp&#34; --&gt;<br />&lt!-- #include virtual=&#34;/Connections/connSQLServer.asp&#34; --&gt;<br />&#60;html&#62;<br />&#60;head&#62;<br />&#60;title&#62;Date42.com - The Internet's Number One Singles & Dating Site! &#60;/title&#62;<br />&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=iso-8859-1&#34;&#62;<br />&#60;style type=&#34;text/css&#34;&#62;<br />&lt!-- body {&nbsp;&nbsp;font-family&#58; MS Sans Serif; font-size&#58; 14px; font-style&#58; normal; font-weight&#58; bolder; color&#58; #FF0000}<br />--&gt;<br />&#60;/style&#62;<br />&#60;/head&#62;<br /><br />&#60;body bgcolor=&#34;#FFFFFF&#34; text=&#34;#000000&#34;&#62;<br /><br />&#60;%<br /> 'declare some variables to facilitate working with the objects comprising fileupload.<br />Dim oFO, oProps, oFile, i, item, oMyName<br /><br /> 'create an instance of FileUpload. FileUpload is the only object that you will<br /> 'directly set an instance of. The other classes are returned by various methods<br /> 'of the object.<br />Set oFO = New FileUpload<br /><br /> 'print version<br />' By James - Response.Write&#40;&#34;&#60;H3&#62;FileUpload Object v&#34; & oFO.Version & &#34;&#60;/H3&#62;&#34;&#41;<br /><br /> 'call the GetUploadSettings method to return an instance of the FO_Properties<br /> 'object for this instance of FileUpload. FO_Properties contains all the <br /> 'property settings for uploads.<br />Set oProps = oFO.GetUploadSettings<br />with oProps<br /><br />&nbsp;&nbsp;'the FO_Properties object contains 6 properties. Each property has a default<br />&nbsp;&nbsp;'so you only need to set the properties if the defaults do not meet<br />&nbsp;&nbsp;'your intended usage scheme.<br /><br />&nbsp;&nbsp;'allowable file extensions<br /> .Extensions = Array&#40;&#34;gif&#34;, &#34;jpg&#34;&#41;<br /><br />&nbsp;&nbsp;'upload directory<br /> .UploadDirectory = Server.Mappath&#40;&#34;/temp_images/&#34;&#41;<br /><br />&nbsp;&nbsp;'file overwrite option<br /> .AllowOverWrite = true<br /><br />&nbsp;&nbsp;'max file size for EACH file to upload &#40;older versions of the class<br />&nbsp;&nbsp;'only check the entire post stream's length once at the beginning&#41;<br /> .MaximumFileSize = 200000&nbsp;&nbsp;' give or take 50k for each file<br /><br />&nbsp;&nbsp;'minimum file size for each file to upload &#40;older versions of the class<br />&nbsp;&nbsp;'only check the entire post stream's length once at the beginning&#41;<br /> .MininumFileSize = 1000 ' 1k<br /><br />&nbsp;&nbsp;'disable uploading<br /> .UploadDisabled = false<br />End with<br /><br /> 'all the properties you set above are remembered by the FileUpload class as soon<br /> 'as they are set so there's no reason not to destroy the FO_Properties object we<br /> 'just used to modify the upload system properties to save memory.<br />set oProps = nothing<br /><br /> 'default method. Processupload must be called to set everything up. After <br /> 'ProcessUpload is called, the remaining properties, methods and objects <br /> 'exposed by fileupload become available and are populated with data.<br />oFO.ProcessUpload<br /><br /> 'the totalformcount property returns the total count of everything submitted <br /> 'to the fileupload object. this includes binary input from files and text form <br /> 'inputs posted from a form.<br />if oFO.TotalFormCount &#62; 0 then<br /><br />&nbsp;&nbsp;'the filecount property returns the count of all binary form inputs that <br />&nbsp;&nbsp;'were read and loaded by the class after ProcessUpload was called. It is<br />&nbsp;&nbsp;'not an accurate count of acceptable files, it merely counts the number<br />&nbsp;&nbsp;'of binary form inputs parsed.<br /> if oFO.FileCount &#62; 0 then<br /><br />&nbsp;&nbsp; 'you can easily use the FileCount property to setup a loop to<br />&nbsp;&nbsp; 'go through all files that are attempting to be uploaded.<br />&nbsp;&nbsp;for i = 1 to oFO.FileCount<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'the fileupload's file object returns a FO_File object<br />&nbsp;&nbsp;&nbsp;&nbsp;'containing properties and methods that allow you to<br />&nbsp;&nbsp;&nbsp;&nbsp;'view components of the file and perform actions on<br />&nbsp;&nbsp;&nbsp;&nbsp;'the file. The File method's argument expects a long<br />&nbsp;&nbsp;&nbsp;&nbsp;'integer in the range of 1 to FileCount.<br />&nbsp;&nbsp; set oFile = oFO.File&#40;i&#41;<br />&nbsp;&nbsp; ' By James - response.write &#34;&#60;HR&#62;&#60;B&#62;file #&#34; & i & &#34;&#60;/B&#62;&#60;HR&#62;&#34;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'if an error has occurred when the FO_File object was<br />&nbsp;&nbsp;&nbsp;&nbsp;'being created or filled with data, it will be in the<br />&nbsp;&nbsp;&nbsp;&nbsp;'ErrorMessage property of the returned FO_File object.<br />&nbsp;&nbsp; if oFile.ErrorMessage &#60;&#62; &#34;&#34; then<br />&nbsp;&nbsp;&nbsp;&nbsp;response.write &#34;An error occurred while attempting to upload your image file&#58; &#60;br&#62;&#60;br&#62;&#34; & _<br />&nbsp;&nbsp;&nbsp;&nbsp; oFile.ErrorMessage & &#34;&#60;BR&#62;&#34;<br />&nbsp;&nbsp; else<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'rename file<br />&nbsp;&nbsp;&nbsp;&nbsp;'oFile.FileName = &#34;newfile.txt&#34; & &#34;.&#34; & oFile.FileExtension<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; 'there are a couple of different options for<br />&nbsp;&nbsp;&nbsp;&nbsp; 'saving files. in this case, i want a copy<br />&nbsp;&nbsp;&nbsp;&nbsp; 'of the uploaded file on the server so I use<br />&nbsp;&nbsp;&nbsp;&nbsp; 'the saveasfile method.<br />&nbsp;&nbsp;&nbsp;&nbsp;oFile.SaveAsFile<br /><br />&nbsp;&nbsp;&nbsp;&nbsp; 'after saving an uploaded file using any of the<br />&nbsp;&nbsp;&nbsp;&nbsp; 'various save methods available, you should check<br />&nbsp;&nbsp;&nbsp;&nbsp; 'the upload successful property to ensure that<br />&nbsp;&nbsp;&nbsp;&nbsp; 'the file was saved properly. In the event of an<br />&nbsp;&nbsp;&nbsp;&nbsp; 'error during I/O, UploadSuccessful always returns <br />&nbsp;&nbsp;&nbsp;&nbsp; 'false.<br />&nbsp;&nbsp;&nbsp;&nbsp;if oFile.UploadSuccessful then<br />&nbsp;&nbsp;&nbsp;&nbsp; response.write &#40;&#34;&#60;BR&#62;&#60;br&#62;&#60;div align=&#34;&#34;center&#34;&#34;&#62;File uploaded successfully&#60;/div&#62;&#60;BR&#62;&#60;br&#62;&#60;BR&#62;&#60;br&#62;&#34;&#41;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'contenttype - returns the content-type of the<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'uploaded file.<br />&nbsp;&nbsp;&nbsp;&nbsp; ' By James - response.write&#40;&#34; - content-type&#58; &#34; & oFile.ContentType & &#34;&#60;BR&#62;&#34;&#41;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'filename - returns the filename of the uploaded<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'file, including extension.<br />&nbsp;&nbsp;&nbsp;&nbsp; 'response.write&#40;&#34; - file name&#58; &#34; & oFile.FileName & &#34;&#60;BR&#62;&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp; response.write &#40;&#34;&#60;div align=&#34;&#34;center&#34;&#34;&#62;&#60;img src=&#46;&#46;/&#46;&#46;/&#46;&#46;/temp_images/&#34; & oFile.FileName & &#34; width=150&#62;&#60;/div&#62;&#60;BR&#62;&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'bytecount - returns the binary length of the saved file.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'this accurately represents the size of the file in bytes<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'on the server.<br />&nbsp;&nbsp;&nbsp;&nbsp; 'response.write&#40;&#34; - file size&#58; &#34; &&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;formatnumber&#40;oFile.ByteCount, 0&#41; & &#34; bytes&#60;BR&#62;&#34;&#41;<br /><br />'james code from here<br /><br />'*******************************************************************<br /><br />'Open connection to user table and write online<br />Dim conn<br />set conn = Server.CreateObject&#40;&#34;ADODB.connection&#34;&#41;<br />conn.open MM_connSQLServer_STRING<br /><br />' first get the Original Pic1 so we can delete it off the server<br />Dim rsGetNameToDelete<br />set rsGetNameToDelete = conn.execute&#40;&#34;SELECT &#34; & strPic & &#34;, &#34; & strThumb & &#34;, &#34; & otherPic2 & &#34;, &#34; & otherThumb2 & &#34;, &#34; & otherPic3 & &#34;, &#34; & otherThumb3 & &#34; FROM date42.tblUser WHERE UserID = '&#34; & strUserID & &#34;'&#34;&#41;<br /><br /> <br /> <br />Dim strOldImageName<br /> WHILE NOT rsGetNameToDelete.EOF<br />&nbsp;&nbsp;strOldImageName = Rtrim&#40;rsGetNameToDelete&#40;&#34;&#34;&strPic&&#34;&#34;&#41;&#41;<br />&nbsp;&nbsp;strOldThumb = RTrim&#40;rsGetNameToDelete&#40;&#34;&#34;&strThumb&&#34;&#34;&#41;&#41;<br />&nbsp;&nbsp;<br />&nbsp;&nbsp;otherPic2 = Rtrim&#40;rsGetNameToDelete&#40;&#34;&#34;& otherPic2 &&#34;&#34;&#41;&#41;<br />&nbsp;&nbsp;otherThumb2 = Rtrim&#40;rsGetNameToDelete&#40;&#34;&#34;& otherThumb2 &&#34;&#34;&#41;&#41;<br />&nbsp;&nbsp;otherPic3 = Rtrim&#40;rsGetNameToDelete&#40;&#34;&#34;& otherPic3 &&#34;&#34;&#41;&#41;<br />&nbsp;&nbsp;otherThumb3 = Rtrim&#40;rsGetNameToDelete&#40;&#34;&#34;& otherThumb3 &&#34;&#34;&#41;&#41;<br /> <br />&nbsp;&nbsp;rsGetNameToDelete.movenext&#40;&#41;<br /> WEND<br /><br /><br />Call DeleteImages<br /><br /><br />Dim rsPicture<br /><br />strAwaitPic = &#34;awaitingPic.jpg&#34;<br />strAwaitThumb = &#34;awaitingPicSM.jpg&#34;<br /><br />set rsPicture = conn.execute&#40;&#34;UPDATE date42.tblUser SET &#34; & strPic & &#34; = '&#34; & strAwaitPic & &#34;', &#34; & strThumb & &#34; = '&#34; & strAwaitThumb & &#34;'&nbsp;&nbsp;WHERE UserID = '&#34; & strUserID & &#34;'&#34;&#41; <br /><br /> <br /><br /><br />strNewImageUploadName = Replace&#40;oFile.FileName,&#34;'&#34;,&#34;''&#34;&#41;<br />strNewImageUploadName = Replace&#40;strNewImageUploadName,&#34;&#34;&#34;&#34;,&#34;&#34;&#34;&#34;&#41;<br /><br />set rsNewPicture = conn.execute&#40;&#34;INSERT INTO date42.tblNewImages&#40;UserID, UserName, &#34; & strPic & &#34;&#41; VALUES&#40;'&#34; & strUserID & &#34;', '&#34; & strUserName & &#34;', '&#34; & oFile.FileName & &#34;'&#41;&#34;&#41; <br /><br />'end if<br />'*******************************************************************<br />'****************************************************************************<br />**<br />'****************************************************************************<br />**<br />'email admin here<br />'email the new user<br />Dim Emfrom<br />Dim Emsub<br />Dim Emto<br />Dim Emcc<br />Dim Embcc<br />Dim Embody<br />Dim Emattach<br /><br />Emfrom = &#34;&#91;email=&#34;photos@date42.com&#34;&#93;photos@date42.com&#91;/email&#93;&#34;<br />Emsub = &#34;New Picture&#34;<br />Emto = &#34;&#91;email=&#34;photos@date42.com&#34;&#93;photos@date42.com&#91;/email&#93;&#34;<br />Emcc = &#34;&#34;<br />Embcc = &#34;&#34;<br />Embody = &#34;New Picture to be put online.&#34; & vbcrlf & vbcrlf & &#34;ImageName&#58;-&#34; & strNewImageUploadName & vbcrlf & vbcrlf & &#34;--------------------&#34; & vbcrlf<br />Emattach = &#34;&#34;<br /><br />'Dim ObjCdo<br />&nbsp;&nbsp;Dim objMail<br />&nbsp;&nbsp;Set objMail = CreateObject&#40;&#34;CDO.Message&#34;&#41; <br />&nbsp;&nbsp;Dim iConf<br />&nbsp;&nbsp;Set iConf = CreateObject&#40;&#34;CDO.Configuration&#34;&#41;<br />&nbsp;&nbsp;Dim Flds<br />&nbsp;&nbsp;Set Flds = iConf.Fields<br />&nbsp;&nbsp;Flds&#40;&#34;&#91;url=&#34;http&#58;//schemas.microsoft.com/cdo/configuration/sendusing&#34;&#93;http&#58;//schemas.microsoft.com/cdo/configuration/sendusing&#91;/url&#93;&#34;&#41; = 1<br />&nbsp;&nbsp;Flds&#40; _<br />&nbsp;&nbsp;&#34;&#91;url=&#34;http&#58;//schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory&#34;&#93;http&#58;//schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory&#91;/url&#93;&#34;&#41; _<br />&nbsp;&nbsp;= &#34;c&#58;&#092;inetpub&#092;mailroot&#092;pickup&#34;<br />&nbsp;&nbsp;Flds.Update<br />ObjMail.From = Emfrom<br />ObjMail.Subject = Emsub<br />ObjMail.To = Emto<br />ObjMail.cc = Emcc<br />ObjMail.bcc = Embcc<br />ObjMail.Htmlbody = Embody<br />'ObjCDO.AttachFile&#40;Emattach&#41;<br /><br />ObjMail.send<br /><br />Set ObjMail = nothing<br />%&#62;<br /> <br /> &lt;script language=&#34;JavaScript&#34;&#62;<br />&lt!-- <br />function MM_callJS&#40;jsStr&#41; { //v2.0<br />&nbsp;&nbsp;opener.document.location = &#34;&#46;&#46;/&#46;&#46;/my_pictures.asp&#34;<br />&nbsp;&nbsp;return eval&#40;jsStr&#41;<br />&nbsp;&nbsp;<br />}<br />//--&gt;<br />&#60;/script&#62;<br /> <br /> <br /> &#60;%<br /> <br /> response.write &#34;&#60;BR&#62;&#60;BR&#62;&#60;div align=&#34;&#34;center&#34;&#34;&#62;Your image will be verified and will appear online within 24 hours.&#60;/div&#62;&#60;br&#62;&#60;br&#62;&#60;div align=&#34;&#34;center&#34;&#34;&#62;&#60;A HREF=&#34; & Chr&#40;34&#41; & &#34;#&#34;&nbsp;&nbsp;& Chr&#40;34&#41; & &#34;onClick=&#34; & Chr&#40;34&#41; & &#34;MM_callJS&#40;'window.close&#40;&#41;'&#41;&#34; & Chr&#40;34&#41; & &#34;&#62;Click here to close this window&#60;/A&#62;&#60;/div&#62;&#34;<br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp; response.write &#34;An error occurred saving the image file to disk&#58; &#34; & _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;oFile.ErrorMessage & &#34;&#60;BR&#62;&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;end if<br />&nbsp;&nbsp; end if<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;'release file object to save memory.<br />&nbsp;&nbsp; set oFile = Nothing<br /><br />&nbsp;&nbsp; 'retrieve next file object &#40;if any&#41;<br />&nbsp;&nbsp;next<br /> else<br /><br />&nbsp;&nbsp; 'if a form doesn't have any binary inputs on it, the filecount<br />&nbsp;&nbsp; 'property will return 0 &#40;no &#60;input type=file&#62; inputs&#41;<br />&nbsp;&nbsp;response.write &#34;&gt; no binary file content submitted.&#34;<br /> end if<br />&nbsp;&nbsp;<br />'taken from here*****************88888<br /> <br />else<br /><br />&nbsp;&nbsp;'if the totalformcount property returns 0, no input was posted to the page<br />&nbsp;&nbsp;'so we might as well show the upload form and give them a chance to upload.<br /> oFO.ShowUploadForm request.servervariables&#40;&#34;SCRIPT_NAME&#34;&#41;<br />end if<br /><br />'release FileUpload object to save memory.<br />set oFO = Nothing<br />%&#62;&#60;/body&#62;<br />&#60;/html&#62;<!--c2--></div><!--ec2--><br /><br />Thanks<br />Craig <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /><br /><br /><br /><br />]]></description>
		<pubDate>Mon, 23 Jun 2008 06:10:03 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Again-Another-Asp-Problem-t1945.html</guid>
	</item>
	<item>
		<title>Asp Chat Help?</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Asp-Chat-Help-t1944.html</link>
		<description><![CDATA[Hi all,<br /><br />I have a website where ASP is being run, and I have an error which reads:<br /><!--fonto:Arial--><span style="font-family:Arial"><!--/fonto--><br /><b><!--fonto:Arial--><span style="font-family:Arial"><!--/fonto-->Microsoft VBScript runtime error '800a0046'<!--fontc--></span><!--/fontc--> <!--fontc--></span><!--/fontc--></b><br /><br /><b><!--fonto:Arial--><span style="font-family:Arial"><!--/fonto--><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo-->Permission denied<!--sizec--></span><!--/sizec--> <!--fontc--></span><!--/fontc--></b><b><!--fonto:Arial--><span style="font-family:Arial"><!--/fonto--><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo-->/chat/message_GetID.asp<!--sizec--></span><!--/sizec--><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo-->, line 41<!--sizec--></span><!--/sizec--><!--fontc--></span><!--/fontc--></b> <br /><br />As I don't have any clue about using ASP this has become a difficult task to complete. This code is for an instant messaging chat system, but this error comes up when you click on the online user to chat to them. Could someone please advise me because this is urgent.<br /><br />Thanks<br />Craig <img src="http://www.thewebsqueeze.com/forum/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />]]></description>
		<pubDate>Mon, 23 Jun 2008 04:40:18 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Asp-Chat-Help-t1944.html</guid>
	</item>
	<item>
		<title>Upload Form..</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Upload-Form-t1921.html</link>
		<description>Well im fairly new at PHP so I wanted to see how hard it would be to have like a client upload form to upload big files, pictures, etc.. so the client wont have to send it by email because its to big and so they wont have to download an ftp program.  Which is a big hassle for the non-tech clients.  So ya.  Any thoughts and opinions would be helpful.  Maybe a field that selects which directory for which client it uploads it to..</description>
		<pubDate>Thu, 19 Jun 2008 23:49:00 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Upload-Form-t1921.html</guid>
	</item>
	<item>
		<title>Export Xls To Mysql</title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/Export-Xls-To-Mysql-t1838.html</link>
		<description><![CDATA[I know how to do that for xsl to access..<br />but what about xls to mysql?<br />Anyone know how to do that?<br /><br />Thanks...]]></description>
		<pubDate>Mon, 16 Jun 2008 01:30:08 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/Export-Xls-To-Mysql-t1838.html</guid>
	</item>
	<item>
		<title>Asp Access - Piechart @ Barchart</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Asp-Access-Piechart-B-t1827.html</link>
		<description><![CDATA[I was thinking whether it is posible (before procedding with my research) for me to generate a pie chart or perhaps a bar chart from my database!<br /><br />Let say my system will be used to input work/letter in and out every day, and at the end of the week I can generate a pie chart from it.<br />Is it posible and if it do, how complex that would be? I am using MS Access Database, how about MySQL Database?<br /><br />Cheers...]]></description>
		<pubDate>Sun, 15 Jun 2008 03:39:48 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Asp-Access-Piechart-B-t1827.html</guid>
	</item>
	<item>
		<title>Save Multiple Select Boxes?</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Save-Multiple-Select-Boxe-t1810.html</link>
		<description><![CDATA[<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;select name=&#34;categories&#34; multiple=&#34;multiple&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;option value=&#34;Web Design&#34;&#62;Web Design&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;option value=&#34;Web Development&#34;&#62;Web Development&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;option value=&#34;Freelancing&#34;&#62;Freelancing&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;option value=&#34;Catering&#34;&#62;Catering&#60;/option&#62;<br />&#60;/select&#62;<!--c2--></div><!--ec2--><br /><br />How do I save the results of more than one selection with php?<br />]]></description>
		<pubDate>Fri, 13 Jun 2008 05:50:24 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Save-Multiple-Select-Boxe-t1810.html</guid>
	</item>
	<item>
		<title>Transitions</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Transitions-t1807.html</link>
		<description><![CDATA[Hey all, late one for you.<br /><br />www.brettonconsulting.co.uk is the example here.<br /><br />Basically the 'Services' opens a div underneath. AND IT WORKS!!! (First time i looked at javascript at all, usually takes me hours to get around stuff like this)<br /><br />Right so now i can get on with the rest of the site to meet deadlines. But i want to know how i can create a transition effect with it.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34;&#62;<br /><br />function change&#40;&#41;{<br />document.getElementById&#40;&#34;secondary-nav&#34;&#41;.style.height = &#34;29px&#34;;<br />document.getElementById&#40;&#34;header-left&#34;&#41;.style.paddingTop = &#34;39px&#34;;<br /><br />}<br /><br />function change_back&#40;&#41;{<br />document.getElementById&#40;&#34;secondary-nav&#34;&#41;.style.height = &#34;0px&#34;;<br />document.getElementById&#40;&#34;header-left&#34;&#41;.style.paddingTop = &#34;68px&#34;;<br />}<br /><br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />That's the code, really simple! <br /><br />But a point in the right direction will be great.]]></description>
		<pubDate>Thu, 12 Jun 2008 20:38:00 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Transitions-t1807.html</guid>
	</item>
	<item>
		<title><![CDATA[I'm Stealing Justify's Idea And Learning Ruby On Rails]]></title>
		<link>http://www.thewebsqueeze.com/forum/Ruby-Ruby-on-Rails-f13/I-m-Stealing-Justify-s-Id-t1806.html</link>
		<description><![CDATA[Justify earlier said:<br /><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->So I have been working ridiculous hours lately, 9-11.30 weekdays then sundays 10-12.<br /><br />But something I have been thinking about more is my future. Is this were i want to be blah blah.<br /><br />So i have made a new resolution to myself. One night a week. I'm learning something.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />So, every Friday night, I'm going to learn Ruby on Rails. Any pointers most welcome.]]></description>
		<pubDate>Thu, 12 Jun 2008 18:32:29 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Ruby-Ruby-on-Rails-f13/I-m-Stealing-Justify-s-Id-t1806.html</guid>
	</item>
	<item>
		<title>C++</title>
		<link>http://www.thewebsqueeze.com/forum/ColdFusion-Perl-and-othe-f41/C-t1803.html</link>
		<description><![CDATA[So I have been working ridiculous hours lately, 9-11.30 weekdays then sundays 10-12.<br /><br />But something I have been thinking about more is my future. Is this were i want to be blah blah.<br /><br />So i have made a new resolution to myself. One night a week. I'm learning something. <br /><br />And first is C++! Have been going through the basics. I understand structure of languages and it's great! Might look a bit more confusing then PHP but it's clean, it's fun.. (stupid pranks on friends). And can handle some serious stuff!<br /><br />From this I can go python... Java... And similar languages.<br /><br />So anyone here know C++? <br /><br />Any stories of how you learnt?]]></description>
		<pubDate>Thu, 12 Jun 2008 11:40:19 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ColdFusion-Perl-and-othe-f41/C-t1803.html</guid>
	</item>
	<item>
		<title><![CDATA[What's The Most Efficient Way To Do This?]]></title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/What-s-The-Most-Efficient-t1776.html</link>
		<description><![CDATA[I am writing a function to replace radio buttons in a form with graphics, the function loops through the radio buttons and then sets an onclick for them so that when they are clicked the graphics will be updated appropriately. Below is the code for the onclick I am setting.<br /><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //radChecked = image of checked radio button<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //radNorm = image of normal radio button<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //The image has the same id as the radio button but is prefixed by 'img'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inputs&#91;i&#93;.onclick = function&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //We don't know what radio button was checked previously, so we will have to loop through the relevant images until we find it, and then change it to a normal image<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var radios = document.getElementsByName&#40;this.name&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for&#40;i=0; i&#60;radios.length; i++&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var radImg = document.getElementById&#40;'img' + radios&#91;i&#93;.id&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if&#40;radImg.src == radChecked.src&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {radImg.src = radNorm.src; break;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.getElementById&#40;'img'+this.id&#41;.src = radChecked.src;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<!--c2--></div><!--ec2--><br /><br />Specific questions I have about this are:<br />  1. I am setting the function for each element. Would it be more efficient to have the function seperate e.g.<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->inputs&#91;i&#93;.onclick = radclick&#40;this&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //outside the loop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function radclick&#40;el&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {//change the images}<!--c2--></div><!--ec2--><br />2. I am looping through the elements and only changing the image if it is checked and is not the button that was just clicked. Would it be more efficient to just change the image src without checking e.g.<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->for&#40;i=0; i&#60;radios.length; i++&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;'img' + radios&#91;i&#93;.id&#41;.src = radNorm.src;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.getElementById&#40;'img'+this.id&#41;.src = radChecked.src;<!--c2--></div><!--ec2--><br /><br />3. This isn't shown in the code snippet above, but the images have a forid property, which is the id of the radio button it is for so when you click on an image it can click on the relevant radio button. The images also have an id which includes the word 'img' and the id of the radio button it is for e.g. image with id of 'imgRad1' and forid of 'Rad1' would be for a radio button with id of 'Rad1'. So I am duplicating information here. Is it most efficient to have this forid property so I can access the radio button via document.getElementById(this.forid) or would I be better off without it and just doing document.getElementById(this.id.substr(3)) (where 'this' is the image that has been clicked on)?<br /><br />Thanks<br /><br />Dave]]></description>
		<pubDate>Tue, 10 Jun 2008 13:47:44 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/What-s-The-Most-Efficient-t1776.html</guid>
	</item>
	<item>
		<title>Content Categorisation</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Content-Categorisation-t1757.html</link>
		<description><![CDATA[Hello Forums<br />      I'm currently designing a website that needs content categorization  for  example in <a href='http://www.thewebsqueeze.com/forum/redirect.php?url=http%3A%2F%2Fbeibora.com%2F' rel='nofollow' target="_blank">these page here</a>. Is there anything I can install to have something like these that an admin has to login to edit the info?     thanks]]></description>
		<pubDate>Mon, 09 Jun 2008 10:09:13 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Content-Categorisation-t1757.html</guid>
	</item>
	<item>
		<title>Hide Address In The Address Bar</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Hide-Address-In-The-Addre-t1722.html</link>
		<description><![CDATA[Here is the situation...<br /><br />My company are using Window Server 2003 and of course there is a Firewall.<br />In that Firewall there is a port that will be pointing to another server.<br />The main server has a web based interface for people to select which application they want to lunch!<br /><br />The question is, in the web based interface the address will be look like this:<br /><a href='http://www.thewebsqueeze.com/forum/redirect.php?url=http%3A%2F%2FSERVERNAME%3A8989%2Fesales%2Flogin.jsp' rel='nofollow' target="_blank">http://SERVERNAME:8989/esales/login.jsp</a><br />You see that displaying the port number is not a good way security wise :D<br />How am I suppose to hide this from being display to the user?<br /><br />Thank you.]]></description>
		<pubDate>Sat, 07 Jun 2008 21:47:02 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Hide-Address-In-The-Addre-t1722.html</guid>
	</item>
	<item>
		<title>Tips To Improve Your Site Performance</title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/Tips-To-Improve-Your-Site-t1654.html</link>
		<description><![CDATA[Hey everyone, good day to you all...!<br /><br />I found this tips "<b>Tips to improve your site performance</b>" and i couldnt understand this line where it says "<i>Data manipulation from Recordsets should be done at the query level itself. Do not perform sorting, ordering etc. in the script.</i>"<br /><br />Can someone explain the meaning :D<br />Thanks.]]></description>
		<pubDate>Tue, 03 Jun 2008 05:42:50 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/Tips-To-Improve-Your-Site-t1654.html</guid>
	</item>
	<item>
		<title>Age Counter</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Age-Counter-t1644.html</link>
		<description><![CDATA[What have I done wrong?<br /> <br /> <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script&#62;<br /> // · Don't change anything here below ·<br /> <br /> var age = new Date&#40;&#41;;<br /> var day = age.getDate&#40;&#41;;<br /> var year = age.getYear&#40;&#41;;<br /> var month = &#40;age.getMonth&#40;&#41; + 1&#41;;<br /> if &#40;year &#60; 1000&#41; {<br /> year += 1900;<br /> }<br /> <br /> // · Adjust values ·<br /> <br /> var my_day = **2**&#59;<br /> var my_month = **6**&#59;<br /> var my_year = **1982**&#59;<br /> }<br /> <br /> // · Don't change anything here below ·<br /> <br /> if &#40;&#40;day == my_day&#41; && &#40;month == my_month&#41;&#41; {<br /> my_age = year - my_year;<br /> }<br /> else if &#40;&#40;day &#62;= my_day&#41; && &#40;month &#62;= my_month&#41;&#41; {<br /> my_age = year - my_year;<br /> }<br /> else if &#40;&#40;day &#60; my_day&#41; && &#40;month == my_month&#41;&#41; {<br /> my_age = --year - my_year;<br /> }<br /> else if &#40;&#40;day &#60; my_day&#41; && &#40;month &#62; my_month&#41;&#41; {<br /> my_age = year - my_year;<br /> }<br /> else {<br /> my_age = --year - my_year;<br /> }<br /> document.write &#40;my_age&#41;;<br /> &#60;/script&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 02 Jun 2008 06:05:41 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Age-Counter-t1644.html</guid>
	</item>
	<item>
		<title>Form Validation</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Form-Validation-t1642.html</link>
		<description><![CDATA[Ok, I know basic form validation but when it comes to validating a form with more than 50 field then I have to go to google to search for the script. Here is some JS script for validating a form that I have found but for every empty field it will popup an alert message which is not a good way of doing it :D<br /><br />My question is, what is the best way of validating a form which have 50+ field to be validated with a single prompt (alert user which field is empty) upon submiting the form. Thanks...<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script language=&#34;javascript&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp; function validate&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp; submitOK=&#34;True&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp; // Form Field Information<br />&nbsp;&nbsp;&nbsp;&nbsp; if &#40;document.validateForm.FirstName.value == &#34;&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;Please enter your First Name.&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;submitOK=&#34;False&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp; if &#40;document.validateForm.LastName.value == &#34;&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;Please enter your Last Name.&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;submitOK=&#34;False&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp; if &#40;document.validateForm.Email.value == &#34;&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert&#40;&#34;Please enter your Email Address.&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;submitOK=&#34;False&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /> if &#40;submitOK==&#34;False&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp; &#60;/script&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Sun, 01 Jun 2008 23:08:17 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Form-Validation-t1642.html</guid>
	</item>
	<item>
		<title>Version Control</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Version-Control-t1640.html</link>
		<description><![CDATA[I was wondering what kind of tools you guys use to manage/create your projects. I'm not talking only about an editor and an ftp program, but more about the longterm advantages of tools.<br /><br />I don't want to spend money (yet) on tools and/or software to help me with this, so i'm looking for freeware software.<br />For editing i use Notepad++, just so you know.<br /><br />But what about version control? I'd like to keep track of changing of files, and be able to go back a version, or at least find out the differences. Which brings me to some kind of diff/patch creation. Compare two files, notice the differences, and create a diff file for it. Which brings me to the next; Notepad++ has some kind of thing for this (Compare plugin), but this compares 2 files. What would be even better is to be able to compare two almost similar directories (f.e. version 1 and version 2 and get total report of what's different).<br />Do you guys use anything like this?<br />It tends to get a bit annoying to keep track manually of all kinds of changes on a system you make, and want to share that with clients. It would be great if there's an easy way to "monitor" or "compare" it with a previous version, so updates on other systems are made easy (or at least easier).<br /><br />And when you're ready and want to deploy something but want to keep your code safe from reselling and such, will you encrypt it? If yes, with what kind of tool? I've checked out Zend encode, but that it way out of budget. Any freeware for this?<br /><br />Ofcourse editors with plugins for this are not out of the question. I like Notepad++ but i'm willing to experiment. :D<br /><br />Looking forward to reading about how you guys handle this.]]></description>
		<pubDate>Sun, 01 Jun 2008 19:26:16 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Version-Control-t1640.html</guid>
	</item>
	<item>
		<title>Random Url Selection</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Random-Url-Selection-t1639.html</link>
		<description><![CDATA[Hi,<br /><br />I am looking for a way that when someone navigates to a file, that file sends them to one of the four links enclosed in that file randomly. Is this possible?<br /><br />Cheers,<br /><br />Ross]]></description>
		<pubDate>Sun, 01 Jun 2008 16:35:56 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Random-Url-Selection-t1639.html</guid>
	</item>
	<item>
		<title>Why Does This Script Only Work When At The Top?</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Why-Does-This-Script-Only-t1634.html</link>
		<description><![CDATA[I am making a website for the Philosophy Club at my school, and I wanted to add a search box for the library there.  I still haven't gotten permission from the libraries to add it, so it might end-up pointless anyways, but I was hoping you could help me with something.<br /><br />I don't actually know javascript, so I made this by adapting someone elses'.  The thing works, but whenever there are any search boxes that come before it in the HTML then it stops working.  And that is really weird, and I am assuming means that I botched something up (even though it works find as long as the entry field is at the top.  What needs to change here?<br /><br />EDIT: It explodes when I try to post it, so instead I am attaching a screen shot.<br /><br />Thanks for all the help guys!]]></description>
		<pubDate>Sat, 31 May 2008 22:51:41 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Why-Does-This-Script-Only-t1634.html</guid>
	</item>
	<item>
		<title>Javascript Pop Up</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Javascript-Pop-Up-t1606.html</link>
		<description><![CDATA[Hello, I swear this has been asked before on this forum but am having some trouble finding it. I am looking to create a pop like 'My Assistant.'<br /><br />I would like a form to pop up. Once it has been submitted the page will be reloaded. Could someone tell me how I can achieve this?<br /><br /><br />Thanks]]></description>
		<pubDate>Fri, 30 May 2008 12:57:35 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Javascript-Pop-Up-t1606.html</guid>
	</item>
	<item>
		<title>Reg Expressions. Match A Full Stop?</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Reg-Expressions-Match-A-t1588.html</link>
		<description><![CDATA[I am trying to cut out commas and full stops from numbers. I checking against ParseInt to see if the number is valid. If it is I am trying to check for commas and periods. Commas are not a problem.<br /><br />However The full stop is a proving rather hard to pin down.<br /><br />Why isn't this working?<br /><br />PriceStr.match('/&#092;./')<br /><br /><br />EDIT: Solved by using 'lastIndexOf' instead. Am still interested to find out how to match a full stop though.]]></description>
		<pubDate>Thu, 29 May 2008 07:04:29 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Reg-Expressions-Match-A-t1588.html</guid>
	</item>
	<item>
		<title>Fit Element To Page Size In Ie6</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Fit-Element-To-Page-Size-t1586.html</link>
		<description><![CDATA[I'm trying to get an Element to fit to the page size when the window is resized in IE6. Unfortunately, it seems that when calculating the page size IE6 calculates it with the Element still taking up the size it was before the window was resized, even though I am telling it not to. I have tried setting the element display to 'none' instead of resizing it to 0px, but still the same problem.<br /><br />Hope someone can help me!<br /><br />Dave<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> &#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01//EN&#34; &#34;http&#58;//www.w3.org/TR/html4/strict.dtd&#34;&#62;<br />&nbsp;&nbsp; &#60;html&#62;<br />&nbsp;&nbsp; &#60;head&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;title&#62;Untitled Page&#60;/title&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;style type=&#34;text/css&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; body, html<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; margin&#58; 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; padding&#58; 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height&#58; 100%;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #lbContainer<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background-color&#58; #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; filter&#58; alpha&#40;opacity=70&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; z-index&#58; 2;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position&#58; absolute;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top&#58; 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; left&#58; 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/style&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type=&#34;text/javascript&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; window.onresize = function&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lbContainer = document.getElementById&#40;'lbContainer'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lbContainer.style.width = 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lbContainer.style.height = 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resize&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function resize&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var lbContainer = document.getElementById&#40;'lbContainer'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var pageSize = getPageSize&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lbContainer.style.width = pageSize&#91;0&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lbContainer.style.height = pageSize&#91;1&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function getPageSize&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new Array&#40;document.documentElement.scrollWidth, document.documentElement.scrollHeight&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#60;/script&#62;<br />&nbsp;&nbsp; &#60;/head&#62;<br />&nbsp;&nbsp; &#60;body&#62;<br />&nbsp;&nbsp; &#60;div id=&#34;lbContainer&#34;&#62;&#60;/div&#62;<br />&nbsp;&nbsp; &#60;/body&#62;<br />&nbsp;&nbsp; &#60;/html&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Thu, 29 May 2008 06:35:09 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Fit-Element-To-Page-Size-t1586.html</guid>
	</item>
	<item>
		<title>Assembly Probing</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Assembly-Probing-t1580.html</link>
		<description><![CDATA[.NET framework has this "nice" feature called probing where it searches assemblies from various locations, including the /bin folder and loads them when the application starts. Is there a way to limit the assemblies that it loads? I've found out that it loads every file it finds, even if you rename the file extension to something else than dll. This would be usefull when updating assemblies with new ones so you could just rename the old one to assembly.dll.old and it would be ok. Currently this doesn't work.]]></description>
		<pubDate>Wed, 28 May 2008 01:32:06 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Assembly-Probing-t1580.html</guid>
	</item>
	<item>
		<title>Something Mysterious Is Happening Here.</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Something-Mysterious-Is-H-t1542.html</link>
		<description><![CDATA[I am trying to hide/display 2 items based on whether a checkbox is ticked or not. This was working in a html test page. I then moved it to the site I am working on and it packed up. I fear it is something to do with the document object model. My test version didn't have the data in a table. Any idea as to what I need to change to bring this little script to life?<br /><br /><br />In the head<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script src=&#34;includes/validation.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />In validation.js<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function display&#40;$var&#41;<br /> <br /> {<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;if &#40;document.getElementById&#40;$var&#41;.style.display == 'none'&#41;<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;{<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;$var&#41;.style.display = 'block';<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;}<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;else<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;{<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;$var&#41;.style.display = 'none';<br /> <br /> &nbsp;&nbsp;&nbsp;&nbsp;}<br /> <br /> }<!--c2--></div><!--ec2--><br /><br />In add page<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> &#60;tr height=&#34;25&#34;&#62;<br /> <br /> &#60;th align=&#34;left&#34;&#62;For Rent&#58;&#60;/th&#62;<br /> <br /> &#60;td&#62;&#60;input type=&#34;checkbox&#34; name=&#34;rent&#34; value=&#34;true&#34; onchange=&#34;display&#40;'View'&#41;&#34; class=&#34;general_form&#34; &#60;?if&#40;$new_object-&#62;GetPropertyString&#40;$string='rent',$result_edit_details&#91;'kdcontent_string'&#93;&#41;==&#34;Yes&#34;&#41;{?&#62;checked&#60;?}?&#62;&#62;&#60;/td&#62;<br /> <br /> <br /> &#60;/tr&#62;<br /> <br /> &#60;tr&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;View&#34;&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;th align=&#34;left&#34;&#62;Short-term Rental&#60;/th&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;&#60;input type=&#34;checkbox&#34; name=&#34;short-term&#34; value=&#34;true&#34; class=&#34;general_form&#34; &#60;?php if&#40;$result_edit_details&#91;'kd_short_term'&#93; ==&#34;Yes&#34;&#41;{?&#62;checked&#60;?php } ?&#62; &#62;&#60;/td&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br /> &#60;/tr&#62;&nbsp;&nbsp;&nbsp;&nbsp;<br /> &#60;tr&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&#60;th align=&#34;left&#34;&#62;Long-term Rental&#60;/th&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&#60;td&#62;&#60;input type=&#34;checkbox&#34; name=&#34;long-term&#34; value=&#34;true&#34; class=&#34;general_form&#34; &#60;?php if&#40;$result_edit_details&#91;'kd_long_term'&#93; ==&#34;Yes&#34;&#41;{?&#62;checked&#60;?php } ?&#62;&#62;&#60;/td&#62;<br /> &#60;/tr&#62;<br /> &nbsp;&nbsp;&nbsp;&nbsp;<br /> <br />&lt;script type=&#34;text/javascript&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById&#40;'View'&#41;.style.display = 'none';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&#60;/script&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 26 May 2008 06:38:33 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Something-Mysterious-Is-H-t1542.html</guid>
	</item>
	<item>
		<title>Logoff When Session Ended</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Logoff-When-Session-Ended-t1541.html</link>
		<description><![CDATA[I have a script on top of my protected page which will redirect the user to a certain page if the session has ended!<br />The problem is, upon logging in, I have updated the user status from Offline to Online. So, my point would be to automatically update their status, that means change from Online to Offline if their session has ended!<br /><br />I have no idea how that flow will be?<br />Any guidance?<br />Thanks...<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> Session.Timeout=10<br /> If Session&#40;&#34;security&#34;&#41; &#60;&#62; &#34;True&#34; Then<br />&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect&#40;&#34;session_ended.asp&#34;&#41;<br /> End If<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 26 May 2008 01:23:08 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Logoff-When-Session-Ended-t1541.html</guid>
	</item>
	<item>
		<title>Strip Text Strings From A Field?</title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/Strip-Text-Strings-From-A-t1524.html</link>
		<description><![CDATA[OK, a guy has a website with a price field. Unforunately this is set as varchar and many numbers are in the following format.<br /><br />1000 EUR<br /><br />I need to remove the EUR part.<br /><br />Can this be done with MySQL? Or do I need to use PHP to analyse the string?]]></description>
		<pubDate>Fri, 23 May 2008 10:27:14 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/Strip-Text-Strings-From-A-t1524.html</guid>
	</item>
	<item>
		<title>Php Resources.</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Resources-t1494.html</link>
		<description><![CDATA[Hello everyone.<br /><br />I was hoping to find out what resources people have used to learn some of the basics of PHP and SQL or something along those lines.<br />I'm quite interested in purchasing a good book to have a read through to give me some more base knowledge to build upon.<br /><br />Some of the tutorials posted are great for individual applications but as a beginner to the language I find it hard to work out exactly what each part is doing (even with good commenting) and how I can use the same knowledge in different applications.]]></description>
		<pubDate>Mon, 19 May 2008 23:34:47 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Resources-t1494.html</guid>
	</item>
	<item>
		<title>Business Order Form</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Business-Order-Form-t1489.html</link>
		<description><![CDATA[I'm starting an ecommerce site from scratch and I want to have a fairly simple order form to support around 10 products. I'd like it to have a shipping calculator, have fields for credit cards, and be able to send customers a thank you email after their order. I do have some experience with the asp code and form building but not too much. Is there a script I can download or a fairly reasonable product I could purchase to help me with this?]]></description>
		<pubDate>Mon, 19 May 2008 08:28:24 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Business-Order-Form-t1489.html</guid>
	</item>
	<item>
		<title>Learn Mysql Resources?</title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/Learn-Mysql-Resources-t1487.html</link>
		<description><![CDATA[Does anyone know of any good books, websites or other resources which contains advanced MySQL topics such as database design, JOIN's and other 'beyond the basics' stuff?]]></description>
		<pubDate>Mon, 19 May 2008 04:10:38 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/Learn-Mysql-Resources-t1487.html</guid>
	</item>
	<item>
		<title>How Is This Script Changing The Url?</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/How-Is-This-Script-Changi-t1474.html</link>
		<description><![CDATA[the page is called seller_search.php. When the form is submitted its action says 'seller_search.php'. So basically this script is somehow taking the URL and changing it. However I cannot see where or how it is changing it. Could someone tell me how it is writing the URL without using JavaScript, php header functions or form action locations...<br /><br />URL is changed from <br /><br />seller_search.php?subtype=BG_LISTING<br /><br />to<br /><br />seller_search.php?subtype=BG_LISTING&city=&region=&country=&search=Search<br /><br /><i>Code Removed</i>]]></description>
		<pubDate>Fri, 16 May 2008 07:57:04 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/How-Is-This-Script-Changi-t1474.html</guid>
	</item>
	<item>
		<title>Php Newbie - How To Use A Php Script To Send A Form</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Newbie-How-To-Use-A-t1469.html</link>
		<description><![CDATA[Hi<br /><br />I am trying to learn PHP but I am not too good yet...  My problem is that I need to figure out how to send a form from a client's website to her e-mail address.  The form is fairly simple with a couple of basic questions and checkboxes.  I have googled and found plenty of tutorials but they do not seem to work.  I am not sure if this has to do with my host (GoDaddy) or not.<br /><br />At any rate, does anyone know of a good tutorial site that shows a beginner how to send a form using PHP?  Or maybe there is a simpler way I could do it?  I am so frustrated and I need to get this website up and running.<br /><br />Any suggestions are greatly appreciated!]]></description>
		<pubDate>Thu, 15 May 2008 13:06:43 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Newbie-How-To-Use-A-t1469.html</guid>
	</item>
	<item>
		<title>Mouse Over Events</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Mouse-Over-Events-t1461.html</link>
		<description><![CDATA[Hi guys, I am having a few issues with some JS.  I am using a image that is thumbnailed and on mouseover= the image will enlarge, on mouseOut= I want it to return to normal size.<br /><br />What have I done wrong to as mine does not return to the original size<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;a href=&#34;http&#58;//www.southerntrailers.co.uk/&#34; target=&#34;_blank&#34;&#62;&#60;img src=&#34;http&#58;//www.fieldworksuk.com/images/southerntrailers.jpg&#34; width=&#34;213&#34; height=&#34;173&#34; onMouseover=&#34;this.src='http&#58;//www.fieldworksuk.com/images/southerntrailers.jpg';this.height=346;this.width=426&#34; mouseOut=&#34;this.src='http&#58;//www.fieldworksuk.com/images/southerntrailers.jpg';this.height=173;this.width=213&#34;&#62;&#60;/a&#62;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 14 May 2008 05:46:55 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Mouse-Over-Events-t1461.html</guid>
	</item>
	<item>
		<title>Php Form With Some Questions Relevent To Past Questions.</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Form-With-Some-Questi-t1459.html</link>
		<description><![CDATA[Hi. I wasn't too sure how to describe this in the Topic Title.<br />Basicly I'm trying to create a form with a few Yes or No answers that lead to further questions.<br /><br />For example If someone answers Yes to Question 1 then I want them to answer questions 2 through to 4. But I don't want them able to answer questions 5 through to 7 and vice versa. Questions 2-7 are all text response questions.<br /><br />I then want everyone to answer question 8. If they answer yes to question 8 I want them to answer 8a and 8b. If No, then skip to 9, etc.<br /><br />I've been scouring around for a while trying to find how to do something like this but it seems a hard topic to do searches on. Can anyone point to any tutorials or give any hints on how to start?<br /><br />It would be good if once they chose Yes or No the unrelevent questions became inaccesable (greyed out or whatever you want to call it)]]></description>
		<pubDate>Tue, 13 May 2008 22:35:42 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Form-With-Some-Questi-t1459.html</guid>
	</item>
	<item>
		<title>Regex</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Regex-t1454.html</link>
		<description><![CDATA[I suck at regex, and I just can't get the hang of it no matter how long I stare at tutorials.<br /><br />How would I retrieve the URL from an anchor tag in HTML using preg_replace?<br /><br />For example: &lt;a href="/thispage.php"&gt; to /thispage.php]]></description>
		<pubDate>Mon, 12 May 2008 22:54:58 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Regex-t1454.html</guid>
	</item>
	<item>
		<title>Problem Unsetting Session Data</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Problem-Unsetting-Session-t1451.html</link>
		<description><![CDATA[Hi there,<br />I am having some trouble unsetting session data.. no matter what I try, it wont unset.<br /><br />My site works thus:<br /><br />index.php holds the layout and also includes a page called view.php<br />The job of view.php is to call and show content from the database depending on what index.php?view= is set to by using $_GET['view'] then shows the apropriate content.<br /><br />At the minute I am working on an error system which is causing the problems. <br />I have a page in the database called error which includes error_handling.php which will deal with showing all error messages.<br /><br />In my contact form for the site, I have it so that if something is a miss, it does this:<br />$_SESSION['fcode'] = Error message;<br /><br />Now, after the error has been shown via the error page I try and add unset the session data by adding<br />unset($_SESSION['fcode']); directly after echo $_SESSION['fcode'];<br />But, the session does not unset.<br /><br />This is the error_handling.php<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&nbsp;&nbsp;&nbsp;&nbsp;session_start&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />//Error Handling <br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;!isset&#40;$_SESSION&#91;'fcode'&#93;&#41;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;header&#40;'Location&#58; index.php'&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $_SESSION&#91;'fcode'&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset&#40;$_SESSION&#91;'fcode'&#93;, $fcode &#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<!--c2--></div><!--ec2--><br /><br />What I'm trying to do is if someone comes along and tries accessing mysite.com/index.php?vew=error if there is no errors in the session, it redirects them back home. But, it doesnt work because after I submit an empty form, I am taken to the error page, if I navigate away from the error page and come back, the error is still present and the session data is still there.<br /><br />I just cant work it out :/<br /><br />Any help greatly appreciated!<br /><br />Thanks, weasel]]></description>
		<pubDate>Mon, 12 May 2008 18:16:22 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Problem-Unsetting-Session-t1451.html</guid>
	</item>
	<item>
		<title><![CDATA[Table Setup For 'tagging' Stuff]]></title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/Table-Setup-For-tagging-t1448.html</link>
		<description><![CDATA[For each page in my site I am intending a user can add any tags they think relevant. Then another page will enable them to search for pages with a tag e.g. they could search for football to find all pages tagged with football.<br /><br />I have a table that lists all the pages, should I add another column to this called 'tags', or should the tags be a seperate table with a different row for each tag? If anyone can advise how the table(s) be setup for this, I'd greatly appreciate it!<br /><br />Dave]]></description>
		<pubDate>Sun, 11 May 2008 14:13:24 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/Table-Setup-For-tagging-t1448.html</guid>
	</item>
	<item>
		<title>Using String.join()</title>
		<link>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Using-Stringjoin-t1439.html</link>
		<description><![CDATA[I'm trying to use the String.Join() to get an array to form 1 string<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><br />Dim arrSite As String = {"Hello", "BUILDING_NAME", "BUILDING_UNIT_IDENTIFIER", "DLVRY_INSTLTN_QUALIFIER_NAME", _<br />                                     "ROUTE_SERVICE_NUMBER", "POSTAL_BOX_NUMBER", "STREET_NUMBER"}<br /><br />strDisplayMember = String.Join(" ", CType(arrSite, String()))<br /></div><br /><br />But I get a blue squigly line under arrSite saying "Array initializers are valid only for arrays, but the type of 'arrSite' is 'String'"<br /><br />Ok so .. if I change that to dim arrSite As Array, I still get a squigly line and it says "Array initializers are valid only for arrays, but the type of 'arrSite' is 'System.Array'"<br /><br />?!?  :scratch_one-s_head:]]></description>
		<pubDate>Fri, 09 May 2008 13:20:02 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/ASP-NET-f12/Using-Stringjoin-t1439.html</guid>
	</item>
	<item>
		<title><![CDATA[[solved] Adding Something To A Column Order?]]></title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/solved-Adding-Something-t1420.html</link>
		<description><![CDATA[<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->INSERT  INTO  &#96;content&#96; (  &#96;id&#96; ,  'order',  &#96;location&#96; ,  &#96;content&#96; ,  &#96;page&#96; ,  &#96;publish&#96; ,  &#96;title&#96; ,  &#96;plugin&#96;  )<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />What speech amrks do I need to insert into the order column?]]></description>
		<pubDate>Tue, 06 May 2008 15:02:15 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/solved-Adding-Something-t1420.html</guid>
	</item>
	<item>
		<title>Php Graphics Engine?</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Graphics-Engine-t1414.html</link>
		<description><![CDATA[Before I say anything else I have no intention to make a game of any kind. I just got a question from a random web user and I was curious as the answer.<br /><br />He asked if it was possible make a graphics engine with php. I told him that I cannot be certain but I am pretty sure that php cannot be used to make a graphics engine.<br /><br />Can PHP theoritcally be used to make a graphics engine? If not what is the language missing to create one?]]></description>
		<pubDate>Tue, 06 May 2008 05:21:06 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Graphics-Engine-t1414.html</guid>
	</item>
	<item>
		<title>Delay Actions?</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Delay-Actions-t1405.html</link>
		<description><![CDATA[I thought I had a cool little js app going on. What happens is that you can cycle through a couple of images when you press some buttons. During testing today I got a little bored and decided to try to press all of the buttons at once. I managed to press 2 and 2 images loaded at the same time. This should be allowed to happen.<br /><br />What are my options on setting some sort of delay between buttons being pressed?<br /><br />Here is my rather simple code.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$&#40;document&#41;.ready&#40;function&#40;&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item2&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item3&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item4&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item5&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#1&#34;&#41;.click&#40;function &#40;&#41; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item1&#34;&#41;.show&#40;&#34;slow&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item2&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item3&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item4&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item5&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#2&#34;&#41;.click&#40;function &#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item2&#34;&#41;.show&#40;&#34;slow&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item1&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item3&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item4&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item5&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#3&#34;&#41;.click&#40;function &#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item3&#34;&#41;.show&#40;&#34;slow&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item2&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item1&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item4&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item5&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#4&#34;&#41;.click&#40;function &#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item4&#34;&#41;.show&#40;&#34;slow&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item2&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item3&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item1&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item5&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#5&#34;&#41;.click&#40;function &#40;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item5&#34;&#41;.show&#40;&#34;slow&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item2&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item3&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item4&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$&#40;&#34;#item1&#34;&#41;.hide&#40;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;}&#41;;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Mon, 05 May 2008 05:47:34 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Delay-Actions-t1405.html</guid>
	</item>
	<item>
		<title>Clean Up Your Page, Removing Bad Behaviour</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Clean-Up-Your-Page-Remov-t1396.html</link>
		<description><![CDATA[This is a discussion thread about "<a href="http://www.thewebsqueeze.com/tutorials/clean-up-your-page-removing-bad-behaviour-35.htm" target="_blank">Clean Up Your Page, Removing Bad Behavior</a>".<br /><br />Have questions or comments about this tutorial, post them here!<br /> <br /><b><br /></b>]]></description>
		<pubDate>Fri, 02 May 2008 14:39:04 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Clean-Up-Your-Page-Remov-t1396.html</guid>
	</item>
	<item>
		<title>Checking Cookies Enabled</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Checking-Cookies-Enabled-t1348.html</link>
		<description><![CDATA[Heres my problem:<br />When a user loads the page I try to create a cookie, then when they submit the form I check whether the cookie was created, then either process the POST or return a message telling them to turn on cookies.<br /><br />Now if they turn on cookies after receiving the message and re-submit the form, it will still tell them they don't have cookies created (because the cookie wasn't created before submitting the form since they previously had cookies turned off). How can I get round this?<br /><br />My thoughts are either:<br /><ul><li>No cookies message tells them to refresh the page after enabling cookies and then re-submit the form. Problems with this are that when they refresh the page they will get the browser message saying do they want to re-send POST information, may be offputting to some people. Also after they refresh the page, but before they re-submit the form it will still say cookies not enabled, which again may confuse some people.</li><li>Use javascript to create the cookie when the form is submitted. Problem with this is they need js turned on.</li><li>If cookies aren't enabled, change the action of the form to have a get var like ?nocookie=true on the end, then if this is detected, write a cookie. I don't think it's possible to reload a page while keeping POST vars and not have the user have to click okay on the 'do you want to resend POST information' alert? So I'd stick the POST vars into a SESSION, reload the page and process as normal but use the SESSION vars instead of POST.</li></ul>Out of those I like the third one best, but there must be a better way to do this? Would appreciate any comments/suggestions.<br /><br />Thanks<br /><br />Dave]]></description>
		<pubDate>Sun, 27 Apr 2008 16:15:59 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Checking-Cookies-Enabled-t1348.html</guid>
	</item>
	<item>
		<title>Using Global Variables Inside Functions</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Using-Global-Variables-In-t1336.html</link>
		<description><![CDATA[Right at the beginning of my PHP, I set a variable:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$host = &#34;http&#58;//&#34;.$_SERVER&#91;'HTTP_HOST'&#93;;<!--c2--></div><!--ec2--><br /><br />I then use this variable for building URLs. It works fine for most of the PHP, but it <b>doesn't </b>work inside a function (it returns an empty string). Why?<br /><br />I can simply set it again <i>inside </i>the function, but is this necessary? Why can't I call global variables from inside a function?<br /><b><br />**edit**</b><br /><br />Well, it works if I pass it to the function as an argument. Is that the way to go?]]></description>
		<pubDate>Fri, 25 Apr 2008 07:41:39 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Using-Global-Variables-In-t1336.html</guid>
	</item>
	<item>
		<title>Document.forms.myform Has No Properties?</title>
		<link>http://www.thewebsqueeze.com/forum/Javascript-f10/Documentformsmyform-Has-t1311.html</link>
		<description><![CDATA[Could someone explain to me what this error is and why it is being generated please.<br /><br />I have a form like such.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;form method=&#34;post&#34; enctype =&#34;multipart/form-data&#34; name=&#34;myForm&#34;&#62;<!--c2--></div><!--ec2--><br /><br />In the form are 3 fields. Duration, Homepage and website. Each input box contains an 'onchange="calculate()"'<br /><br />This is my Javascript. I am trying to create a running total based on the input boxes.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&lt;script type=&#34;text/javascript&#34;&#62;<br />function checkFields&#40;&#41;{<br />var website = document.forms&#91;'myForm'&#93;.website.value;<br />var homepage = document.forms&#91;'myForm'&#93;.homepage.value;<br />var duration = document.forms&#91;'myForm'&#93;.duration.value;<br /><br />if&#40;website == &#34;&#34;&#41;{<br />website = 0;<br />} else{<br />website = 4;<br />}<br /><br />if&#40;homepage == &#34;&#34;&#41;{<br />homepage = 0;<br />} else{<br />homepage = 20;<br />}<br /><br />if&#40;duration == &#34;&#34;&#41;{<br />duration = 0;<br />}<br /><br />var total_value = website + homepage + duration;<br />}<br /><br />// then on calculate&#40;&#41; do something like this&#58;<br />function calculate&#40;&#41;{<br />var total = 100; // enter whatever you want the total to be<br />checkFields&#40;&#41;;<br />var new_total = total - total_value;<br />document.getElementById&#40;&#34;showNewCalculations&#34;&#41;.innerHTML=new_total;<br />}<br />&#60;/script&#62;<!--c2--></div><!--ec2--><br /><br />I am getting this error.<br /><br />Error: document.forms.myForm has no properties<br /><br />On this line.<br /><br />'function checkFields(){'<br /><br />Could someone tell me what is going on here. If you require any more information tell me what you need and I will put it up for you.]]></description>
		<pubDate>Wed, 23 Apr 2008 06:32:23 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/Javascript-f10/Documentformsmyform-Has-t1311.html</guid>
	</item>
	<item>
		<title>Email Address Recall From Database</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Email-Address-Recall-From-t1303.html</link>
		<description><![CDATA[I have a change details page in my site, I want to be able to send an email to the email address in my users database, to prevent fraud<br /><br />Can some one please tell me how to do this pls]]></description>
		<pubDate>Mon, 21 Apr 2008 15:36:05 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Email-Address-Recall-From-t1303.html</guid>
	</item>
	<item>
		<title>Php Email Form Issue</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Email-Form-Issue-t1302.html</link>
		<description><![CDATA[I have a email form with a list menu :<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;select name=&#34;contactoptions&#34; id=&#34;contactoptions&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option selected&#62;Email&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;option&#62;Text Message&#60;/option&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/select&#62;<!--c2--></div><!--ec2--><br /><br />It then goes to an email confirm page:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->$msg .= &#34;Name&#58;&nbsp;&nbsp;&nbsp;&nbsp;&#34; . $_POST&#91;'lname'&#93; . &#34;&#092;n&#34;;<br />$msg .= &#34;Contact Details&#58;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#34; . $_POST&#91;'contactdetails'&#93; . &#34;&#092;n&#34;;<br /><br />$lastname = $_POST&#91;'lname'&#93;;<br />echo &#40;htmlspecialchars&#40;$lastname&#41;&#41;;<br />$recipient =<!--c2--></div><!--ec2--><br /><br />How do I make the email confirm script email the result of the list menu?  Because at present I get this emailed to me:<br /><br />Name:    eg Mr Joe Blogs <br />Contact Details:	    <br /><br />Alex]]></description>
		<pubDate>Mon, 21 Apr 2008 15:07:59 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Php-Email-Form-Issue-t1302.html</guid>
	</item>
	<item>
		<title>Local Wordpress</title>
		<link>http://www.thewebsqueeze.com/forum/MySQL-f43/Local-Wordpress-t1300.html</link>
		<description><![CDATA[having just installed wordpress on my site, was going to work on m site through WAMP.<br /><br />BUT, the local version of my site gives me a database error message, which makes sense as i have not got a local version of my WP database.<br /><br />How do i download the actual database from my server, and where do i save it to when i do??<br /><br />Cheers for your help<br /><br />Craig :)]]></description>
		<pubDate>Mon, 21 Apr 2008 13:54:21 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/MySQL-f43/Local-Wordpress-t1300.html</guid>
	</item>
	<item>
		<title>Magentocommerce</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Magentocommerce-t1292.html</link>
		<description><![CDATA[Has anyone here played with magentocommerce yet? (<a href='http://www.thewebsqueeze.com/forum/redirect.php?url=http%3A%2F%2Fwww.magentocommerce.com' rel='nofollow' target="_blank">http://www.magentocommerce.com</a>) Reason I'm asking is that some has asked me to build them a shopping cart, which I can do, but thought that instead of going all out and charging them a huge amount of money for it, maybe I could just try out magento. I hear it's supposed to be extremely customizable and easy to work with, but was wondering if anyone here has actually had any experience with it? Good or Bad?]]></description>
		<pubDate>Fri, 18 Apr 2008 15:55:44 -0400</pubDate>
		<guid>http://www.thewebsqueeze.com/forum/PHP-f11/Magentocommerce-t1292.html</guid>
	</item>
	<item>
		<title>Script Problem</title>
		<link>http://www.thewebsqueeze.com/forum/PHP-f11/Script-Problem-t1282.html</link>
		<description><![CDATA[Would someone mind look at my script, I have a Captcha on my contacts form but I can still send the form with no data inserted in any fields.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->&#60;?<br />session_start&#40;&#41;;<br />?&#62;<br />&#60;html&#62;<br />&#60;head&#62;<br />&#60;style type=&#34;text/css&#34;&#62;<br />&lt!--<br />@import url&#40;&#34;http&#58;//www.fieldworksuk.com/css/default.css&#34;&#41;;<br />&lt!--<br />body {<br />&nbsp;&nbsp;&nbsp;&nbsp;background-repeat&#58; repeat-x;<br />}<br />--&gt;<br />&#60;/style&#62;<br />&#60;title&#62;Contact Us&#60;/title&#62;<br />&#60;link rel=&#34;shortcut icon&#34; href=&#34;http&#58;//www.fieldworksuk.com/favicon.ico&#34; &#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;div id=&#34;header&#34;&#62;<br />&lt;script&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />var Digital=new Date&#40;&#41;<br />var month=Digital.getMonth&#40;&#41;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if &#40;month &#60;= 0&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is jan<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img5.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 1&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is feb<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img5.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 2&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is feb<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img2.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 3&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is march<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img2.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 4&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is april<br />&nbsp;&nbsp; document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img2.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 5&#41;{&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is may<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img6.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 6&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is june<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img6.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 7&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is july<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img6.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 8&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is august<br />&nbsp;&nbsp; document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img3.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 9&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is september<br />&nbsp;&nbsp; document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img3.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else if &#40;month &#60;= 10&#41;{<br />&nbsp;&nbsp;&nbsp;&nbsp;// month is october<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img3.jpg'&#62;&#34;&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;} else {<br />&nbsp;&nbsp;&nbsp;&nbsp;// otherwise its december<br />&nbsp;&nbsp;&nbsp;&nbsp;document.write&#40;&#34;&#60;IMG SRC='http&#58;//www.fieldworksuk.com/images/img5.jpg'&#62;&#34;&#41;;<br />}<br />&#60;/script&#62;<br />&#60;/div&#62;<br />&#60;div id=&#34;page&#34;&#62;<br />&nbsp;&nbsp;&#60;div id=&#34;content&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;welcome&#34; class=&#34;post&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h1 class=&#34;title&#34;&#62;Contact Us&#60;/h1&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div class=&#34;content&#34;&#62;&#60;img src=&#34;images/3635.gif&#34; alt=&#34;&#34; width=&#34;131&#34; height=&#34;106&#34; class=&#34;left&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h3 align=&#34;center&#34;&#62;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h3 align=&#34;center&#34;&#62;The professional approach to paddock maintenance.&#60;/h3&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;p align=&#34;center&#34;&#62;&nbsp;&#60;/p&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;example&#34; class=&#34;post&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h2 class=&#34;title&#34;&#62;Contact Us&#60;/h2&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div class=&#34;content&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;?php <br /><br /><br />if&#40; isset&#40;$_POST&#91;'submit'&#93;&#41;&#41; {<br />&nbsp;&nbsp; if&#40; $_SESSION&#91;'security_code'&#93; == $_POST&#91;'security_code'&#93; && !empty&#40;$_SESSION&#91;'security_code'&#93; &#41; &#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 'Thank you. Your message said &#34;'.$_POST&#91;'message'&#93;.'&#34;';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unset&#40;$_SESSION&#91;'security_code'&#93;&#41;;<br />&nbsp;&nbsp; } else {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 'Sorry, you have provided an invalid security code';<br />&nbsp;&nbsp; }<br />} else {<br />?&#62;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;form action=&#34;varifysend.php&#34; method=&#34;post&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label for=&#34;name&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h4&#62;Name&#58;&#60;/h4&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;text&#34; name=&#34;name&#34; id=&#34;name&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label for=&#34;email&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h4&#62;Email&#58;&#60;/h4&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;text&#34; name=&#34;email&#34; id=&#34;email&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;label for=&#34;message&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h4&#62;Message&#58;&#60;/h4&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;textarea rows=&#34;5&#34; cols=&#34;30&#34; name=&#34;message&#34; id=&#34;message&#34;&#62;&#60;/textarea&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;img src=&#34;http&#58;//www.fieldworksuk.com/Captcha/CaptchaSecurityImages.php?width=100&height=40&characters=5&#34; /&#62;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;h4&#62;Security Code&#58;&#60;/h4&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div align=&#34;center&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input id=&#34;security_code&#34; name=&#34;security_code&#34; type=&#34;text&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;br&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Submit&#34; /&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/form&#62;<br /><br />&#60;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />?&#62;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&#60;/div&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;sidebar&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#60;div id=&#34;menu&#34;&#62;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n