1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I need some help with this PHP code

Discussion in 'PHP' started by Andy_ameed, Nov 19, 2010.

  1. #1
    Hi Guys,

    I am trying to limit the "finger up" and "finger down" buttons to have a time interval of 10 seconds.

    I want a user to be able to press once and then for the span of 10 seconds if he press also nothing to be recorded. but if he presses after 10 seconds, it to be again recorded as a point. I have tried myself but am not that expert to something like this.
    SEMrush
    Here is the code below

    <?php
    	//Local copy
    	
    	
    
    	function BBCode($Text)
    	    {
            	// Replace any html brackets with HTML Entities to prevent executing HTML or script
                // Don't use strip_tags here because it breaks [url] search by replacing & with amp
                $Text = str_replace("<", "&lt;", $Text);
                $Text = str_replace(">", "&gt;", $Text);
    			$text= str_replace('"', '&#39;', $message);
    
               
    
                // Set up the parameters for a URL search string
                $URLSearchString = " a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'";
                // Set up the parameters for a MAIL search string
                $MAILSearchString = $URLSearchString . " a-zA-Z0-9\.@";
    			
    			//Non BB URL Search
    			//$Text = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "<a href=\"\\1://\\2\\3\" target=\"_blank\" target=\"_new\">\\1://\\2\\3</a>", $Text);
            	//$Text = eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))", "<a href=\"mailto:\\1\" target=\"_new\">\\1</a>", $Text);
            	if (substr($Text,0, 7) == "http://"){
                $Text = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "<a href=\"\\1://\\2\\3\">\\1://\\2\\3</a>", $Text);
            	 // Convert new line chars to html <br /> tags
                $Text = nl2br($Text);
    			} else { 
                // Perform URL Search
                $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="javascript:go(\'$1\',\'new\')">$1</a>', $Text);
                $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="javascript:go(\'$1\',\'new\')">$2</a>', $Text);
    			//$Text = preg_replace("(\[url\=([$URLSearchString]*)\]([$URLSearchString]*)\[/url\])", '<a href="$1" target="_blank">$2</a>', $Text);
    			 // Convert new line chars to html <br /> tags
                $Text = nl2br($Text);
    			}
                // Perform MAIL Search
                $Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '<a href="mailto:$1">$1</a>', $Text);
                $Text = preg_replace("/\[mail\=([$MAILSearchString]*)\](.+?)\[\/mail\]/", '<a href="mailto:$1">$2</a>', $Text);
    			
                // Check for bold text
                $Text = preg_replace("(\[b\](.+?)\[\/b])is",'<span class="bold">$1</span>',$Text);
    
                // Check for Italics text
                $Text = preg_replace("(\[i\](.+?)\[\/i\])is",'<span class="italics">$1</span>',$Text);
    
                // Check for Underline text
                $Text = preg_replace("(\[u\](.+?)\[\/u\])is",'<span class="underline">$1</span>',$Text);
    
                // Check for strike-through text
                $Text = preg_replace("(\[s\](.+?)\[\/s\])is",'<span class="strikethrough">$1</span>',$Text);
    
                // Check for over-line text
                $Text = preg_replace("(\[o\](.+?)\[\/o\])is",'<span class="overline">$1</span>',$Text);
    
                // Check for colored text
                $Text = preg_replace("(\[color=(.+?)\](.+?)\[\/color\])is","<span style=\"color: $1\">$2</span>",$Text);
    
                // Check for sized text
                $Text = preg_replace("(\[size=(.+?)\](.+?)\[\/size\])is","<span style=\"font-size: $1px\">$2</span>",$Text);
    
                // Check for list text
                $Text = preg_replace("/\[list\](.+?)\[\/list\]/is", '<ul class="listbullet">$1</ul>' ,$Text);
                $Text = preg_replace("/\[list=1\](.+?)\[\/list\]/is", '<ul class="listdecimal">$1</ul>' ,$Text);
                $Text = preg_replace("/\[list=i\](.+?)\[\/list\]/s", '<ul class="listlowerroman">$1</ul>' ,$Text);
                $Text = preg_replace("/\[list=I\](.+?)\[\/list\]/s", '<ul class="listupperroman">$1</ul>' ,$Text);
                $Text = preg_replace("/\[list=a\](.+?)\[\/list\]/s", '<ul class="listloweralpha">$1</ul>' ,$Text);
                $Text = preg_replace("/\[list=A\](.+?)\[\/list\]/s", '<ul class="listupperalpha">$1</ul>' ,$Text);
                $Text = str_replace("[*]", "<li>", $Text);
    
                // Check for font change text
                $Text = preg_replace("(\[font=(.+?)\](.+?)\[\/font\])","<span style=\"font-family: $1;\">$2</span>",$Text);
    
                // Declare the format for [code] layout
                $CodeLayout = '<table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="quotecodeheader"> Code:</td>
                                    </tr>
                                    <tr>
                                        <td class="codebody">$1</td>
                                    </tr>
                               </table>';
                // Check for [code] text
                $Text = preg_replace("/\[code\](.+?)\[\/code\]/is","$CodeLayout", $Text);
    
                // Declare the format for [quote] layout
                $QuoteLayout = '<table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="quotecodeheader"> Quote:</td>
                                    </tr>
                                    <tr>
                                        <td class="quotebody">$1</td>
                                    </tr>
                               </table>';
    						   
                // Check for [code] text
                $Text = preg_replace("/\[quote\](.+?)\[\/quote\]/is","$QuoteLayout", $Text);
    			
                // Images
                // [img]pathtoimage[/img]
                $Text = preg_replace("/\[img\](.+?)\[\/img\]/", '<img src="$1">', $Text);
    			
                // [img=widthxheight]image source[/img]
                $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.+?)\[\/img\]/", '<img src="$3" height="$2" width="$1">', $Text);
    			
    	        return $Text;
    		}
    
    
    //END 3rd PARTY CODE
    
    //quick script to make the data look nice
    
    
    
    
    
    
    
    function formatDate($val)  
      {  
          list($date, $time) = explode(" ", $val);  
          list($year, $month, $day) = explode("-", $date);
          list($hour, $minute, $second) = explode (":", $time);
          return date("m.j.y @ H.i", mktime($hour, $minute, $second, $month, $day, $year));  
      } 
    
    function getComments($tutid){
    //creates a function that can easily be called from any page
    
    //create the css code to make the form look good.  You can edit this to change colors, etc:
    echo "
    <style>
    /*COMMENTS
    *------------------------------------*/
    
    .postedby {
    	padding: 0 0 0 18px;
    	background: url(images/abullet.gif) no-repeat 0 4px;
    	font-family: Arial;
    	font-size: 11px;
    	color: #CCC;
    	}
    	
    h3.formtitle {
    	margin : 0px 0px 0px 0px;
    	padding-bottom: 8px;
    	}
    
    .commentbody {
    	border-bottom: 1px line #ccc;
    	text-align: left;
    	font-family: verdana;
    	color: #6C6C6C;
    	}
    	
    /*gray box*/
    #currentcomments, #rating, .textad {
    	background-color: #EFEFF7;
    	padding: 5px;
    	padding: 5px;
    	margin: 20px 0px 0px 0px;
    	}
    
    
    /*FORMS
    *------------------------------------*/
    
    .form {
    	font-size: 10px;
    	background-color: #FAFAFA;
    	border: solid 1px #C6C6C6;
    	font: 'microsoft Sans Serif';
    	}
    
    .formtext {
    	background-color: #FAFAFA;
    	border: solid 1px #C6C6C6;
    	padding: 2px;
    	font: 'microsoft Sans Serif';
    	
    	}
    
    .form:hover, .formtext:hover {
    	background: white;
    	}
    	
    .form:focus, .formtext:focus {
    	background: white;
    	border: solid 1px #000000;
    	}
    	
    .submit {
    	background-color: #D3D3D3;
    	border: solid 1px #C6C6C6;
    	border-right:  solid 1px #9A9A9A;
    	border-bottom:  solid 1px #9A9A9A;
    	}
    	
    .submit:hover, .submit:focus {
    	background: #EDEDED;
    	}
    
    
    .req {
    color: #797979;
    font-size: 12px;
    font-weight:normal;
    font-family: verdana;
    text-align: left;
    }
    
    .send {
    z-index:-1
    }
    
    	</style>	
    	";
    //fetch all comments from database where the tutorial number is the one you are asking for
    	$commentquery = mysql_query("SELECT * FROM comments WHERE threadid='$tutid' ORDER BY commentdate DESC") or die(mysql_error()); 
    //find the number of comments
    	$commentNum = mysql_num_rows($commentquery);
    //create a headline		?>
    <p class="count" style="font-weight:normal;">
    <?php echo "$commentNum Comment(s)"; ?>
    </p>
    <?php 
    echo "<table width=\"493\" border='0'>";
    
    //for each comment in the database in the right category number...
    	$dfg=1;
    	while($commentrow = mysql_fetch_array($commentquery)){
    //for security, parse through the bbcode script
    //the number corresponds to the column (the message is always stored in column 4
    //COUTING STARTS at 0!!!
    echo "<tr>
    <td colspan='2'>";
    
    $commentbb  =  $commentrow['usercomment'];
    	$commentbb1 = BBCode($commentrow['usercomment']);
    //create the right date format
    
    
    		echo "<div  class=\"commentbody\" >\n
    		<p class=\"notes\">$commentbb</p>\n";
    echo "</td></tr><tr><td>";	
    		echo "<p class=\"postedby\">";
    		echo $commentrow['username']." ";
    		
    		echo $commentrow['commentdate']."\n
    		\n</div>";
    echo "<td width='40%'>";
    	?>
    		
    <div>
    	<div class="countdown<?php echo $dfg; ?>" style="float:right; color:#D00; font-size:15px; margin-top:1px; margin-left:2px;">
    		<?php echo $commentrow['fingerdown']; ?>
    	</div>
    	
    	<div class="fingerdown" style="float:right;">
    		<img id="dedoab<?php echo $dfg; ?>" src="images/down_off.jpg" alt="Rate this comment" title="Rate this comment" onmouseover="javascript:getElementById('dedoab<?php echo $dfg; ?>').src='images/down_on.jpg';" onmouseout="javascript:getElementById('dedoab<?php echo $dfg; ?>').src='images/down_off.jpg';" onclick="javascript:senddown(<?php echo $commentrow['commentid'].",".$dfg; ?>);">
    	</div>
    	<div class="finderup" style="float:right;">
    		<img id="dedoar<?php echo $dfg; ?>" src="images/up_off.jpg" alt="Rate this comment" title="Rate this comment" onmouseover="javascript:getElementById('dedoar<?php echo $dfg; ?>').src='images/up_on.jpg';" onmouseout="javascript:getElementById('dedoar<?php echo $dfg; ?>').src='images/up_off.jpg';" onclick="javascript:sendup(<?php echo $commentrow['commentid'].",".$dfg; ?>);">
    	</div>
    	<div class="countup<?php echo $dfg; ?>" style="float:right; color:#0D0; font-size:15px; margin-top:1px; margin-right:2px;">
    		<?php echo $commentrow['fingerup']; ?>
    	</div>
    </div>
    		
    	<?php
    echo "</td></tr>";
    		
    		$dfg++;
    	}
    	echo "</table>";
    	
    }
    
    
    
    
    
    function getLatestoftwo(){
    //creates a function that can easily be called from any page
    
    //create the css code to make the form look good.  You can edit this to change colors, etc:
    echo "
    <style>
    /*COMMENTS
    *------------------------------------*/
    
    .postedby {
    	padding: 0 0 0 18px;
    	background: url(images/abullet.gif) no-repeat 0 4px;
    	font-family: times New Roman;
    	font-size: 10px;
    	color: #999;
    	}
    	
    h3.formtitle {
    	margin : 0px 0px 0px 0px;
    	padding-bottom: 8px;
    	}
    
    .commentbody {
    	border-bottom: 1px line #ccc;
    	text-align: left;
    	font-family: verdana;
    	color: #666;
    	}
    	
    /*gray box*/
    #currentcomments, #rating, .textad {
    	background-color: #EFEFF7;
    	padding: 5px;
    	padding: 5px;
    	margin: 20px 0px 0px 0px;
    	}
    #headline {
    	font-family: \"Palatino Linotype\";
    	font-size: 14px;
    	color: #039;
    	position: absolute;
    	left: 232px;
    	top: 298px;
    	width: 354px;
    	text-align: justify;
    }
    
    /*FORMS
    *------------------------------------*/
    
    .form {
    	font-size: 10px;
    	background-color: #FAFAFA;
    	border: solid 1px #C6C6C6;
    	font: 'microsoft Sans Serif';
    	}
    
    .formtext {
    	background-color: #FAFAFA;
    	border: solid 1px #C6C6C6;
    	padding: 2px;
    	font: 'microsoft Sans Serif';
    	
    	}
    
    .form:hover, .formtext:hover {
    	background: white;
    	}
    	
    .form:focus, .formtext:focus {
    	background: white;
    	border: solid 1px #000000;
    	}
    	
    .submit {
    	background-color: #D3D3D3;
    	border: solid 1px #C6C6C6;
    	border-right:  solid 1px #9A9A9A;
    	border-bottom:  solid 1px #9A9A9A;
    	}
    	
    .submit:hover, .submit:focus {
    	background: #EDEDED;
    	}
    
    
    .req {
    color: #797979;
    font-size: 12px;
    font-weight:normal;
    font-family: verdana;
    text-align: left;
    }
    
    .send {
    z-index:-1
    }
    
    	</style>	
    	";
    //fetch all comments from database where the tutorial number is the one you are asking for
    	$commentquery = mysql_query("SELECT * FROM threads where categoryid = 'travel' ORDER BY threadid DESC LIMIT 2") or die(mysql_error()); 
    //find the number of comments
    	$commentNum = mysql_num_rows($commentquery);
    //create a headline		?>
    
    <?php 
    echo "<table width=\"353\">";
    
    //for each comment in the database in the right category number...
    	while($Threaddata = mysql_fetch_array($commentquery))
    	{
    	$commentquerys = mysql_query("SELECT * FROM comments where threadid ='".$Threaddata['threadid']."'") or die(mysql_error()); 
    //find the number of comments
    	$NoThreadComments = mysql_num_rows($commentquerys);
    //for security, parse through the bbcode script
    //the number corresponds to the column (the message is always stored in column 4
    //COUTING STARTS at 0!!!
    echo "<tr>
    <td>";
    	$commentbb = BBCode($Threaddata['usercomment']);
    //create the right date format
    		echo "<table width=\"353\" border=\"0\">
                  <tbody><tr>
    			  <td width=\"353\" style=\"padding-left:6px;\" >
    			  <span class=\"headline\" style=\"font-size: 13px; color: rgb(0, 51, 153);\"> <span style=\"color:#993366;font-size:11px;\">+</span>".'
    	  <a href="http://www.maldivedigest.com/maldives_forum/postdetails.php?thread='.$Threaddata['threadid'].'&type='.$Threaddata['categoryid'].'">'.
    	  substr($Threaddata['title'],0,55).'..
          </a></span></td>';
    		
    		echo "<tr>
                    <td width=\"353\" style=\"padding-left:6px;\" >
    				<table>
    				<tr>
    				<td style=\"padding-left:6px;\">
                    <span style=\"text-align: justify;\">".substr($Threaddata['content'],0,105)."..</span><br>
                        <span style=\"color: rgb(143, 71, 143);\">by ".$Threaddata['username']."</span> 
              <span style=\"color: rgb(237, 243, 254);\">".$NoThreadComments ." Comment(s)</span>
    		  </td></tr>
    		  </table>
              </td>
                  </tr>
                </tbody></table>";
    		
    	}
    	echo "</td></tr></table>";
    }
    
    
    
    
    
    function submitComments($tutid2,$tuturl)
    {
    	//a javascript script to make sure all the required fields are filled in
    	?>
    		<script type= "text/javascript">
    			var RecaptchaOptions = {theme: 'white'	};
    		</script>
    
    		<script language="javascript">
    			function form_Validator(form)
    			{			
    				  if (form.name.value == "")
    				  {
    						alert("Please enter your name.");
    						form.name.focus();
    						return (false);
    				  }		
    				  if (form.message.value == "")
    				  {
    						alert("Please enter your message.");
    						form.message.focus();
    						return (false);
    				  }		  
    			return (true);
    			}
       	 </script>
    <?php
    $Threadquery = mysql_query("SELECT * FROM threads where threadid='".$_REQUEST['thread']."'") or die(mysql_error());
     $Threaddata = mysql_fetch_array($Threadquery);
     $titles = substr($Threaddata['content'],0,100);
     $titles =  str_replace('"', "",$titles);
     // find out the domain:
      $domain = $_SERVER['HTTP_HOST'];
      // find out the path to the current file:
      $path = $_SERVER['SCRIPT_NAME'];
      // find out the QueryString:
      $queryString = $_SERVER['QUERY_STRING'];
      // put it all together:
      $url = "http://" . $domain . $path . "?" . $queryString;
    
    
    		echo "
    		<a name=\"post\">
    		<div id=\"submitcomment\" class=\"submitcomment\">
    		<form name=\"submitcomment\" method=\"post\" action=\"submitcomment.php\" onSubmit=\" return form_Validator(this)\">
    		<table width=\"100%\">
    			<tr>
    					<th colspan=\"2\"><h3 class=\"formtitle\"></h3></td>
    			</tr>
    			
    			<tr>		
    				<td style=\"color:#666666;\">Name</p></td>		
    				<td>
    					<input class=\"form\" tabindex=\"1\" id=\"name\" name=\"name\"  cols=\"40\"/>
    				</td>					
    			</tr>
    	
    			<tr valign=\"top\">
    				<td style=\"color:#666666;\">Message</p><br />
    				
    				
    				<div class=\"twitter\" id=\"twitter\"><a href=\"http://twitter.com/home?status=$titles $url\" rel=\"nofollow\" target=\"_blank\"><img src=\"images/twitter_logo.png\" alt=\"twitter\" width=\"30\" height=\"30\" border=\"0\" onMouseOver=\"this.src='images/twitter_logorz.png';\" onMouseOut=\"this.src='images/twitter_logo.png';\"></a></div>
    				
    				</td>
    				<td>
    					<textarea class=\"formtext\" tabindex=\"4\" id=\"message\" name=\"message\" rows=\"10\" cols=\"45\"></textarea>
    				</td>					
    			</tr>
    					<!-- RECAPTCHA SHOULD BE ADDED TO THE FORM HERE -->
    			<tr>
    				<td></td>
    				<td>
    						<img src=\"securimage/securimage_show.php?sid=md5(uniqid(time()));\"><br />
    <input type=\"text\" name=\"code\" /><br />
    				</td>
    			</tr>
    			<tr>	
    				<td>&nbsp;</td>
    				<td>
    					<input type=\"submit\" name=\"post\" class=\"send\" value=\"&nbsp;&nbsp;Send&nbsp;&nbsp;\" />
    				</td>
    			</tr>
    		</table>
    		<input type=\"hidden\" name=\"tuturl\" value=\"$tuturl\" />
    		<input type=\"hidden\" name=\"tutid2\" value=\"$tutid2\" />
    		</form>
    	</div>
    	";
    }
    
    
    function submitthreads($categoryid)
    {
    	//a javascript script to make sure all the required fields are filled in
    	?>
    		
    		<script language="javascript">
    		function validate(form) 
    		{
    		   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
    		   var address = form.EmailID.value;
    		   if(reg.test(address) == false) 
    		   {
    			  alert('Invalid Email Address');
    			  return false;
    		   }
    		   return true;
    		}
    			function thread_Validator2(form)
    			{		
    				  if (form.Name.value == "")
    				  {
    						alert("Please enter your name.");
    						form.Name.focus();
    						return (false);
    				  }	
    				  else if (form.EmailID.value == "")
    				  {
    						alert("Please enter your EmailID.");
    						form.categoryid.focus();
    						return (false);
    				  }		
    				  else if (form.Title.value == "")
    				  {
    						alert("Please enter your Title.");
    						form.Title.focus();
    						return (false);
    				  }	
    				   else if (form.categoryid.value == "")
    				  {
    						alert("Please select category.");
    						form.categoryid.focus();
    						return (false);
    				  }					  
    				  
    				   
    				   else if (form.Content.value == "")
    				  {
    						alert("Please enter your message.");
    						form.Content.focus();
    						return (false);
    				  }		
    				   else if (form.EmailID.value != "")
    				  {
    				  
    						
    						form.EmailID.focus();
    						return (validate(form));
    				  }		
    				  
    				  
    				  	return (true);
    			}
       	 </script>
    	 
    	 <script language="javascript">
    function changeDIR(id)
    {
       var input   = document.getElementById(id);
       var current = input.attributes['dir'].value;
    
       if (current == "")
          input.setAttribute('dir', 'rtl');
    
       if (current == "rtl") {
            input.attributes['dir'].value = "ltr";
            document.getElementById('change').value = "Change to RTL";
       } else if (current == "ltr") {
          input.attributes['dir'].value = "rtl"
            document.getElementById('change').value = "Change to LTR";
       }
    }
    
    function selectLanguage(id)
    {
      if(document.getElementById('language').value == 'english')
      {
    	var textarea = document.getElementById('Content');
    	var title = document.getElementById('Title');
    	textarea.className= 'formtext ltrclass';
    	title.className= 'form ltrclass';
     	/* textarea.attributes['dir'].value = "ltr"; */ 
    	
      }
      else
      {
       	var textarea = document.getElementById('Content');
    	var title = document.getElementById('Title');
    	textarea.className= 'formtext rtlclass';
    	title.className= 'form rtlclass';
    	/* textarea.attributes['dir'].value = "rtl"; */ 
      }
      
      
    }
    </script>
    	 
    <?php
    
    		echo "
    		<a name=\"post\">
    		<div id=\"submitcomment\" class=\"submitcomment\">
    		<form name=\"submitthread\" id=\"submitthread\"  method=\"post\" action=\"submitthread.php\" enctype=\"multipart/form-data\"  onSubmit=\" return thread_Validator2(this)\">
    		<table width=\"100%\">
    			<tr>
    					<th colspan=\"2\"><h3 class=\"formtitle\"></h3></td>
    			</tr>
    			
    			<tr>		
    				<td>Name</td>		
    				<td>
    					<input class=\"form\" tabindex=\"1\" id=\"Name\" name=\"Name\"  cols=\"40\"/>
    				</td>					
    			</tr>
    			
    			<tr>		
    				<td>Email ID</td>		
    				<td>
    					<input class=\"form\" tabindex=\"1\" id=\"EmailID\" name=\"EmailID\"  cols=\"40\"/>
    				</td>					
    			</tr>
    			
    			<tr>		
    				<td><p class=\"req\">Title</p></td>		
    				<td>
    					<!--input class=\"form\" tabindex=\"1\" id=\"Title\" name=\"Title\"  cols=\"50\" style\"\"/-->
    					<textarea class=\"formtext\" style=\" tabindex=\"1\" id=\"Title\" name=\"Title\" rows=\"2\" cols=\"50\" style=\"\"></textarea>
    				</td>					
    			</tr>
    			<tr>		
    				<td>Category</p></td>		
    				<td>
    				<SELECT NAME=\"categoryid\" id=\"categoryid\">
    					<OPTION VALUE=\"\">Select Catogery</option>
    					<OPTION VALUE=\"travel\">Travel</option>
    					<OPTION VALUE=\"politics\">Politics</option>
    					<OPTION VALUE=\"entertainment\">Entertainment</option>
    					<OPTION VALUE=\"tech_n_seo\">Others</option>
    					<OPTION VALUE=\"business\">Business</option>
    				</SELECT>							
    				</td>					
    			</tr>
    			
    			<tr>		
    				<td>Image</p></td>		
    				<td>
    				<input  class=\"form\" type=\"file\" name=\"file\" id=\"file\" /> 					
    				</td>					
    			</tr>
    			<tr valign=\"top\">
    				<td>Keywords</p><br /></td>
    				<td>
    					<input class=\"form\" type=\"text\" name=\"metakey\" id=\"metakey\" /> 					
    				</td>	
    			<tr valign=\"top\">
    				<td>Content</p><br /></td>
    				<td>
    				Select Language
    					<SELECT NAME=\"language\" id=\"language\" onChange=\"selectLanguage(this.value);\">
    					<OPTION VALUE=\"english\">English</option>
    					<OPTION VALUE=\"dhivehi\">Dhivehi</option>
    					
    				    </SELECT>	
    					</td>
    					<tr><td></td>
    					<td>
    					<textarea class=\"formtext\" tabindex=\"4\" id=\"Content\" name=\"Content\" rows=\"25\" cols=\"50\" style=\"\"></textarea>
    				</td>					
    			
    			<tr>
    				<td></td>
    				<td>
    						<img src=\"securimage/securimage_show.php?sid=md5(uniqid(time()));\"><br />
    <input type=\"text\" name=\"code\" /><br />
    				</td>
    			</tr>
    			<tr>	
    				<td>$tuturl &nbsp;</td>
    				<td>
    					<input type=\"submit\" name=\"post\" class=\"send\" value=\"&nbsp;&nbsp;Post Thread&nbsp;&nbsp;\" />
    				</td>
    			</tr>
    		</table>
    		<input type=\"hidden\"  id=\"tuturl\" name=\"tuturl\" value=\"$tuturl\" />		
    		</form>
    	</div>
    	
    	";
    }
    
    
      
    
    
    ?>
    
    PHP:
     
    Andy_ameed, Nov 19, 2010 IP
    SEMrush
  2. Andy_ameed

    Andy_ameed Active Member

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    Here is the part, which shows the "finger up" and "finger down"

     
    Andy_ameed, Nov 20, 2010 IP