<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged validation</title>
<link>https://www.question2answer.org/qa/tag/validation</link>
<description>Powered by Question2Answer</description>
<item>
<title>allow regsiter only from email ends with &quot;LTD&quot;</title>
<link>https://www.question2answer.org/qa/107103/allow-regsiter-only-from-email-ends-with-ltd</link>
<description>

&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;i got i nice way to stop spammers, it's work for me, i allow only domain LTD, i can do that in Python Django, But i don't have any idea about PHP or question2answer.&lt;/p&gt;

&lt;p&gt;How can i do this in question2answer, So the user in the register form well be validate if email LTD allowed, if not user can't register, And need invite from the admin.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;div style=&quot;color: rgb(171, 178, 191); background-color: rgb(40, 44, 52); font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace; font-weight: normal; font-size: 14px; line-height: 28px; white-space: pre; --darkreader-inline-color: #ded7cc; --darkreader-inline-bgcolor: #262a32;&quot; data-darkreader-inline-color=&quot;&quot; data-darkreader-inline-bgcolor=&quot;&quot;&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;# Python Django framework&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;def&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#76d7ff; color:#61afef&quot;&gt;clean_email&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;self&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;):&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;email &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;=&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ff848f; color:#e06c75&quot;&gt;self&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;.cleaned_data[&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;'email'&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;].lower()&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;LTD &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;=&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; email.split(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;'@'&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;)[&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;1&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;].split(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;'.'&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;)[&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;-&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;1&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;]&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;domain &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;=&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; email.split(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;'@'&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;)[&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;1&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;]&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;if&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; LTD &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;!=&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;&quot;uk&quot;&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;:&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;raise&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; forms.ValidationError(_(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;&quot;Only .UK emails are allowed.&quot;&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;))&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;if&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; User.objects.filter(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;email__iexact&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;=&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;email).exists():&lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;raise&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; forms.ValidationError(&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;f&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt;&quot;Email &lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;{&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;email&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#fdbe83; color:#d19a66&quot;&gt;}&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#bbec97; color:#98c379&quot;&gt; Is used.&quot;&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt;) &lt;/span&gt;&lt;/div&gt;

&lt;div&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ee90ff; color:#c678dd&quot;&gt;return&lt;/span&gt;&lt;span data-darkreader-inline-color=&quot;&quot; style=&quot;--darkreader-inline-color:#ded7cc; color:#abb2bf&quot;&gt; email&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/107103/allow-regsiter-only-from-email-ends-with-ltd</guid>
<pubDate>Wed, 05 Apr 2023 19:46:16 +0000</pubDate>
</item>
<item>
<title>How to validate tags?</title>
<link>https://www.question2answer.org/qa/89922/how-to-validate-tags</link>
<description>I would like to use question tags as input for a JSON-LD file. However, I realize that tags are not validated during the process of creating questions. So saboteurs can input with scripts, for example: &amp;lt;script&amp;gt;alert(&amp;quot;test&amp;quot;);&amp;lt;/script&amp;gt; . Also the appearance of single or double quotes marks also make a JSON-LD file dysfunctional.&lt;br /&gt;
&lt;br /&gt;
Do you happen to see a way to validate tags?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/89922/how-to-validate-tags</guid>
<pubDate>Fri, 25 Dec 2020 15:29:54 +0000</pubDate>
</item>
<item>
<title>How can I validate fields in registration form ?</title>
<link>https://www.question2answer.org/qa/89404/how-can-i-validate-fields-in-registration-form</link>
<description>The registration is important part for an admin . Admin wants the data should be in correct form and all fields .&lt;br /&gt;
&lt;br /&gt;
How can I apply validations ?&lt;br /&gt;
&lt;br /&gt;
1. User fill fields atleast 3 length.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/89404/how-can-i-validate-fields-in-registration-form</guid>
<pubDate>Sat, 28 Nov 2020 02:55:00 +0000</pubDate>
</item>
<item>
<title>HTML validation with https://validator.w3.org</title>
<link>https://www.question2answer.org/qa/56352/html-validation-with-https-validator-w3-org</link>
<description>

&lt;p&gt;I run the html validator ( &lt;a href=&quot;https://validator.w3.org&quot; rel=&quot;nofollow&quot;&gt;https://validator.w3.org&lt;/a&gt; ) through the Q2A&amp;nbsp;home page and show many errors. &amp;nbsp;Even here, the official Q2A page: &lt;a href=&quot;http://www.question2answer.org/qa/&quot; rel=&quot;nofollow&quot;&gt;http://www.question2answer.org/qa/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scott are you aware of this? &amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;I also thought to run HTML Validation in the new 1.8 version demo: &amp;nbsp;&lt;a href=&quot;http://demo18.question2answer.info/&quot; rel=&quot;nofollow&quot;&gt;http://demo18.question2answer.info/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I entered one question and then run the test. &amp;nbsp;I saw 3&amp;nbsp;errors and 1 warning:&lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Warning&lt;/strong&gt;:&amp;nbsp;&lt;span style=&quot;color:black&quot;&gt;The&amp;nbsp;border&amp;nbsp;attribute is obsolete. Consider specifying&amp;nbsp;img { border: 0; }&amp;nbsp;in CSS instead.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;From line&amp;nbsp;102, column&amp;nbsp;62; to line&amp;nbsp;102, column&amp;nbsp;164&lt;/p&gt;

&lt;p&gt;answers&quot;&amp;gt;&lt;span style=&quot;background-color:rgb(255, 255, 128)&quot;&gt;&amp;lt;img src=&quot;./qa-theme/Snow/images/rss.jpg&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot; class=&quot;qa-rss-icon&quot;&amp;gt;&lt;/span&gt;&amp;lt;/a&amp;gt;&lt;span style=&quot;color:rgb(34, 34, 34)&quot;&gt;↩&lt;/span&gt;&amp;lt;&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;:&amp;nbsp;&lt;span style=&quot;color:black&quot;&gt;The&amp;nbsp;itemprop&amp;nbsp;attribute was specified, but the element is not a property of any item.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;From line&amp;nbsp;119, column&amp;nbsp;38; to line&amp;nbsp;119, column&amp;nbsp;78&lt;/p&gt;

&lt;p&gt;nt-data&quot;&amp;gt;0&lt;span style=&quot;background-color:rgb(255, 255, 128)&quot;&gt;&amp;lt;meta itemprop=&quot;upvoteCount&quot; content=&quot;0&quot;&amp;gt;&lt;/span&gt;&amp;lt;/span&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;:&amp;nbsp;&lt;span style=&quot;color:black&quot;&gt;The&amp;nbsp;itemprop&amp;nbsp;attribute was specified, but the element is not a property of any item.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;From line&amp;nbsp;131, column&amp;nbsp;35; to line&amp;nbsp;131, column&amp;nbsp;56&lt;/p&gt;

&lt;p&gt;-bbc-ggf&quot;&amp;gt;&lt;span style=&quot;background-color:rgb(255, 255, 128)&quot;&gt;&amp;lt;span itemprop=&quot;name&quot;&amp;gt;&lt;/span&gt;Hello&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Error&lt;/strong&gt;:&amp;nbsp;&lt;span style=&quot;color:black&quot;&gt;The&amp;nbsp;itemprop&amp;nbsp;attribute was specified, but the element is not a property of any item.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;From line&amp;nbsp;137, column&amp;nbsp;35; to line&amp;nbsp;137, column&amp;nbsp;132&lt;/p&gt;

&lt;p&gt;hen-data&quot;&amp;gt;&lt;span style=&quot;background-color:rgb(255, 255, 128)&quot;&gt;&amp;lt;time itemprop=&quot;dateCreated&quot; datetime=&quot;2017-02-21T21:01:31+0000&quot; title=&quot;2017-02-21T21:01:31+0000&quot;&amp;gt;&lt;/span&gt;25 sec&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/56352/html-validation-with-https-validator-w3-org</guid>
<pubDate>Tue, 21 Feb 2017 16:04:15 +0000</pubDate>
</item>
<item>
<title>how to add validation in user fields ?</title>
<link>https://www.question2answer.org/qa/31027/how-to-add-validation-in-user-fields</link>
<description>I want to validate a extra field in registration like checkbox, this check box is my custom code.&lt;br /&gt;
&lt;br /&gt;
Please help</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/31027/how-to-add-validation-in-user-fields</guid>
<pubDate>Mon, 27 Jan 2014 06:36:12 +0000</pubDate>
</item>
<item>
<title>PHP on homepage security questions</title>
<link>https://www.question2answer.org/qa/29844/php-on-homepage-security-questions</link>
<description>

&lt;p&gt;
	I'm fairly new to php and I'm having problems understanding how to grab content from the DB using qa functions.&lt;/p&gt;


&lt;p&gt;
	I'm trying to display a random user on the homepage and have sucsessfully connected and displayed content from the database using the following code in the qa-theme.php&lt;/p&gt;


&lt;p&gt;
	Can you tell me of any protential problems connecting to the DB in this way, security e.t.c&lt;/p&gt;


&lt;p&gt;
	Thanks in advance&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		function main(){&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;if($this-&amp;gt;request=='')&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $con = mysqli_connect(&quot;localhost&quot;,&quot;user&quot;,&quot;password&quot;,&quot;database&quot;);&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Check connection&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (mysqli_connect_errno()) {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;Failed to connect to MySQL: &quot; . mysqli_connect_error();&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;$result = mysqli_query($con,&quot;SELECT * FROM qa_users&quot;);&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;&amp;lt;table border='1'&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;th&amp;gt;User ID&amp;lt;/th&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;th&amp;gt;Handle&amp;lt;/th&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;&quot;;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;while($row = mysqli_fetch_array($result)) {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;tr&amp;gt;&quot;;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;td&amp;gt;&quot; . $row['userid'] . &quot;&amp;lt;/td&amp;gt;&quot;;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;td&amp;gt;&quot; . $row['handle'] . &quot;&amp;lt;/td&amp;gt;&quot;;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &quot;&amp;lt;/tr&amp;gt;&quot;;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;&amp;lt;/table&amp;gt;&quot;;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;mysqli_close($con);&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;qa_html_theme_base::main();&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;else {&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qa_html_theme_base::main();&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		}&lt;/div&gt;
&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29844/php-on-homepage-security-questions</guid>
<pubDate>Wed, 11 Dec 2013 06:26:36 +0000</pubDate>
</item>
<item>
<title>Where would I find this please?</title>
<link>https://www.question2answer.org/qa/29245/where-would-i-find-this-please</link>
<description>

&lt;div&gt;
	Where can I get access to the following code, I'm trying to add a / at the end of the inputs for validation.&lt;/div&gt;


&lt;div&gt;
	&amp;lt;input name=&quot;&quot; value=&quot;&quot; title=&quot;&quot; type=&quot;&quot; class=&quot;&quot; *HERE*&amp;gt;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	Thanks in advance&lt;/div&gt;


&lt;blockquote&gt;
	

&lt;div&gt;
		&amp;nbsp;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;div class=&quot;qa-q-view-buttons&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;q_doedit&quot; value=&quot;edit&quot; title=&quot;Edit this question&quot; type=&quot;submit&quot; class=&quot;qa-form-light-button qa-form-light-button-edit&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;q_doclose&quot; value=&quot;close&quot; title=&quot;Close this question to any new answers&quot; type=&quot;submit&quot; class=&quot;qa-form-light-button qa-form-light-button-close&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;q_dohide&quot; onclick=&quot;qa_show_waiting_after(this, false);&quot; value=&quot;hide&quot; title=&quot;Hide this question&quot; type=&quot;submit&quot; class=&quot;qa-form-light-button qa-form-light-button-hide&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;q_doanswer&quot; id=&quot;q_doanswer&quot; onclick=&quot;return qa_toggle_element('anew')&quot; value=&quot;answer&quot; title=&quot;Answer this question&quot; type=&quot;submit&quot; class=&quot;qa-form-light-button qa-form-light-button-answer&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;q_docomment&quot; onclick=&quot;return qa_toggle_element('c2231')&quot; value=&quot;comment&quot; title=&quot;Add a comment on this question&quot; type=&quot;submit&quot; class=&quot;qa-form-light-button qa-form-light-button-comment&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;dosomethingq&quot; value=&quot;-&quot; title=&quot;Hi! This is a custom button created by a plugin.&quot; type=&quot;submit&quot; class=&quot;qa-form-light-button qa-form-light-button-custombtn&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;input name=&quot;custom_postid&quot; type=&quot;hidden&quot; value=&quot;2231&quot; title=&quot;&quot; class=&quot;qa-form-light-button qa-form-light-button-hidden_id&quot;&amp;gt;&lt;/div&gt;
	

&lt;div&gt;
		&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;/blockquote&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/29245/where-would-i-find-this-please</guid>
<pubDate>Mon, 25 Nov 2013 10:17:24 +0000</pubDate>
</item>
<item>
<title>Iconic One theme for Q2A - beta version</title>
<link>https://www.question2answer.org/qa/27972/iconic-one-theme-for-q2a-beta-version</link>
<description>

&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	This is Q2A theme that matches the Wordpress Iconic One ( &lt;a href=&quot;http://demo.themonic.com/io/&quot; rel=&quot;nofollow&quot;&gt;http://demo.themonic.com/io/&lt;/a&gt; ).&lt;/p&gt;


&lt;p&gt;
	So far I have made some progress without making any changes to the original Iconic One theme style sheet, and without changes to the Q2A core files.&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://www.question2answer.org/qa/?qa=blob&amp;amp;qa_blobid=17183329865115260816&quot; style=&quot;width: 560px; height: 486px;&quot;&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	HOWEVER .....&lt;/p&gt;


&lt;p&gt;
	When I check the code using &lt;a href=&quot;http://validator.w3.org/&quot; rel=&quot;nofollow&quot;&gt;http://validator.w3.org/&lt;/a&gt; and I get two errors from qa-widget-ask-box.php (Core file or Plugin file?)
&lt;br&gt;
	
&lt;br&gt;
	&amp;lt;table class=&quot;qa-form-tall-table&quot; style=&quot;width:100%&quot;&amp;gt;
&lt;br&gt;
	&amp;lt;tr style=&quot;vertical-align:middle;&quot;&amp;gt;
&lt;br&gt;
	&amp;lt;td class=&quot;qa-form-tall-label&quot; style=&quot;padding:8px; white-space:nowrap; &amp;lt;?php echo ($region=='side') ? 'padding-bottom:0;' : 'text-align:right;'?&amp;gt;&quot; &lt;span style=&quot;color:#ff0000;&quot;&gt;width=&quot;1&quot;&lt;/span&gt;&amp;gt;
&lt;br&gt;
	&amp;lt;?php echo strtr(qa_lang_html('question/ask_title'), array(' ' =&amp;gt; '&amp;amp;nbsp;'))?&amp;gt;:
&lt;br&gt;
	&amp;lt;/td&amp;gt;
&lt;br&gt;
	&amp;lt;?php
&lt;br&gt;
	if ($region=='side') {
&lt;br&gt;
	?&amp;gt;
&lt;br&gt;
	&amp;lt;/tr&amp;gt;
&lt;br&gt;
	&amp;lt;tr&amp;gt;
&lt;br&gt;
	&amp;lt;?php&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;
	}
&lt;br&gt;
	?&amp;gt;
&lt;br&gt;
	&amp;lt;td class=&quot;qa-form-tall-data&quot; style=&quot;padding:8px;&quot; &lt;span style=&quot;color:#ff0000;&quot;&gt;width=&quot;*&quot;&lt;/span&gt;&amp;gt;
&lt;br&gt;
	&amp;lt;input name=&quot;title&quot; type=&quot;text&quot; class=&quot;qa-form-tall-text&quot; style=&quot;width:95%;&quot;&amp;gt;
&lt;br&gt;
	&amp;lt;/td&amp;gt;
&lt;br&gt;
	&amp;lt;/tr&amp;gt;
&lt;br&gt;
	&amp;lt;/table&amp;gt;
&lt;br&gt;
	
&lt;br&gt;
	
&lt;br&gt;
	&lt;span style=&quot;color:#0000ff;&quot;&gt;The width attribute on the td element is obsolete. Use CSS instead&lt;/span&gt;.&amp;nbsp; - referring to &lt;span style=&quot;color:#ff0000;&quot;&gt;width=&quot;1&quot; &lt;/span&gt;and &lt;span style=&quot;color:#ff0000;&quot;&gt;width=&quot;*&quot;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Does anyone have a clue how to correct these two errors.&lt;/p&gt;


&lt;p&gt;
	Thanks&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/27972/iconic-one-theme-for-q2a-beta-version</guid>
<pubDate>Fri, 04 Oct 2013 04:08:35 +0000</pubDate>
</item>
<item>
<title>Snow theme has pixel opacity</title>
<link>https://www.question2answer.org/qa/24539/snow-theme-has-pixel-opacity</link>
<description>

&lt;p&gt;
	In qa-styles.css in the Snow theme, search for&amp;nbsp;&lt;span style=&quot;font-family: Calibri; font-size: 11pt; color: rgb(207, 72, 32);&quot;&gt;opacity&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri; font-size: 11pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 11pt; color: rgb(79, 118, 172);&quot;&gt;0.5px&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Calibri; font-size: 11pt;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Opacity, of course, is not measures in pixels. The &quot;px&quot; should be dropped to ensure browsers don't get cofnused.&lt;/p&gt;


&lt;p&gt;
	Actually, according to the &lt;a rel=&quot;nofollow&quot; href=&quot;http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.question2answer.org%2Fqa%2F&amp;amp;profile=css3&amp;amp;usermedium=all&amp;amp;warning=1&amp;amp;vextwarning=&amp;amp;lang=en&quot;&gt;validation report&lt;/a&gt;, it looks like there is a lot of CSS cleanup required.&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/24539/snow-theme-has-pixel-opacity</guid>
<pubDate>Wed, 12 Jun 2013 13:45:21 +0000</pubDate>
</item>
<item>
<title>Disable user login until email is validated</title>
<link>https://www.question2answer.org/qa/19848/disable-user-login-until-email-is-validated</link>
<description>Default Q2A behaviour is that new user is allowed to login and update his/her profile even email is not verified. I want to prevent lurkers from login to the site and setup their website field on user profile page if the email is not verified.&lt;br /&gt;
&lt;br /&gt;
I enabled both options in Admin &amp;gt; Spam, Request confirmation of user emails and New users must complete confirmation but new users are still automatically loggedin during registration process and able to update their profiles.&lt;br /&gt;
&lt;br /&gt;
Is there any way to prevent user login if email is not confirmed?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/19848/disable-user-login-until-email-is-validated</guid>
<pubDate>Fri, 14 Dec 2012 00:47:27 +0000</pubDate>
</item>
<item>
<title>Why not replace all SPAN tags with DIV tags?</title>
<link>https://www.question2answer.org/qa/18202/why-not-replace-all-span-tags-with-div-tags</link>
<description>

&lt;p&gt;
	Mainly because of html validation.&lt;/p&gt;


&lt;p&gt;
	I got many validation errors, see &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.gute-mathe-fragen.de/2942/strahlensatze-losen-von-x-15-x-1-x-9&quot;&gt;example&lt;/a&gt; using &lt;em&gt;tidy html&lt;/em&gt; mostly:&lt;/p&gt;


&lt;p&gt;
	line 428 column 13 - Warning: &lt;strong&gt;missing &amp;lt;/span&amp;gt; before &amp;lt;div&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 429 column 60 - Warning: &lt;strong&gt;inserting implicit &amp;lt;span&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 430 column 13 - Warning: &lt;strong&gt;discarding unexpected &amp;lt;/span&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 541 column 125 - Warning: &lt;strong&gt;trimming empty &amp;lt;span&amp;gt;&lt;/strong&gt;
&lt;br&gt;
	
&lt;br&gt;
	line 389 column 11 - Warning: &lt;strong&gt;&amp;lt;a&amp;gt; cannot copy name attribute to id&lt;/strong&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Using DIV instead of SPAN would solve those issues. So what is the reason not to use div?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Related question: &lt;a rel=&quot;nofollow&quot; href=&quot;http://question2answer.org/qa/17522/why-is-q2a-using-the-span-tag-instead-of-the-div-tag&quot;&gt;Why is q2a using the span-tag instead of the div-tag?&lt;/a&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/18202/why-not-replace-all-span-tags-with-div-tags</guid>
<pubDate>Fri, 05 Oct 2012 07:40:05 +0000</pubDate>
</item>
<item>
<title>How do enable input validation on profile extra fields</title>
<link>https://www.question2answer.org/qa/17426/how-do-enable-input-validation-on-profile-extra-fields</link>
<description>I want to create an extra profile field to hold a user's telephone number. I have created the extra field in the admin console under the users section. How do I enable an input validation contraint on the extra field that limits a user to only entering numeric values</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/17426/how-do-enable-input-validation-on-profile-extra-fields</guid>
<pubDate>Tue, 28 Aug 2012 10:24:43 +0000</pubDate>
</item>
<item>
<title>How to trigger the default validation in filter modules?</title>
<link>https://www.question2answer.org/qa/16664/how-to-trigger-the-default-validation-in-filter-modules</link>
<description>

&lt;p&gt;
	In a filter module plugin, you can edit the content passed to it. But if your edits break other validation rules, the post still goes through. Here's an exaggerated example:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;public function filter_question( &amp;amp;$question, &amp;amp;$errors, $oldquestion )
&lt;br&gt;
	{
&lt;br&gt;
	&amp;nbsp; $question['title'] = '';
&lt;br&gt;
	}&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Now the question title ends up blank and no error is given. It's very reasonable that a question could replace some words and end up at say 19 characters instead of your set minimum of 20.&lt;/p&gt;


&lt;p&gt;
	Is there a way to call Q2A's regular post validation &lt;em&gt;after&lt;/em&gt; making changes?&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/16664/how-to-trigger-the-default-validation-in-filter-modules</guid>
<pubDate>Fri, 20 Jul 2012 07:48:56 +0000</pubDate>
</item>
<item>
<title>Comment about bad html at the bottom of a page</title>
<link>https://www.question2answer.org/qa/11563/comment-about-bad-html-at-the-bottom-of-a-page</link>
<description>I've the text on the very end of my page html&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
It's no big deal, but your HTML could not be indented properly. To fix, please:&lt;br /&gt;
1. Use this-&amp;gt;output() to output all HTML.&lt;br /&gt;
2. Balance all paired tags like &amp;lt;TD&amp;gt;...&amp;lt;/TD&amp;gt; or &amp;lt;DIV&amp;gt;...&amp;lt;/DIV&amp;gt;.&lt;br /&gt;
3. Use a slash at the end of unpaired tags like &amp;lt;img/&amp;gt; or &amp;lt;input/&amp;gt;.&lt;br /&gt;
Thanks!&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but validator said that it is all ok. How to fix it?&lt;br /&gt;
&lt;br /&gt;
or how to just remove this notice from html?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/11563/comment-about-bad-html-at-the-bottom-of-a-page</guid>
<pubDate>Fri, 30 Dec 2011 02:27:46 +0000</pubDate>
</item>
<item>
<title>For Admin - sugestions!</title>
<link>https://www.question2answer.org/qa/3649/for-admin-sugestions</link>
<description>

&lt;p&gt;
	&lt;span id=&quot;result_box&quot; lang=&quot;en&quot;&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;You can improve your variant:&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;&quot; title=&quot;&quot;&gt;- Adding friends&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;&quot; title=&quot;&quot;&gt;- Sending messages to users&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;&quot; title=&quot;&quot;&gt;- Sending messages from admin&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;- invite friends on email and win points&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;Good Look!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span lang=&quot;en&quot;&gt;&lt;span style=&quot;&quot; title=&quot;&quot;&gt;Edit : - affiliates link for recruted new users!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	Vote this question please!&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/3649/for-admin-sugestions</guid>
<pubDate>Tue, 23 Nov 2010 16:50:34 +0000</pubDate>
</item>
<item>
<title>Where to add the alt attribute for the logo - Validation</title>
<link>https://www.question2answer.org/qa/2718/where-to-add-the-alt-attribute-for-the-logo-validation</link>
<description>I tried to validate my site and received an missing ALT attribute error.&lt;br /&gt;
&lt;br /&gt;
As well tried to add it with the logo name but this triggered just a database warning.&lt;br /&gt;
&lt;br /&gt;
I added this: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mylogo.png&amp;quot; ALT=&amp;quot;mysitename &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;thinking that it would be closed correctly inside the program...&lt;br /&gt;
&lt;br /&gt;
Thanks so far</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/2718/where-to-add-the-alt-attribute-for-the-logo-validation</guid>
<pubDate>Fri, 24 Sep 2010 03:34:48 +0000</pubDate>
</item>
<item>
<title>post ID in HTML</title>
<link>https://www.question2answer.org/qa/1282/post-id-in-html</link>
<description>qa-include/qa-app-format.php (L164)&lt;br /&gt;
$fields['tags']=' ID=&amp;quot;'.qa_html($postid).'&amp;quot; ';&lt;br /&gt;
&lt;br /&gt;
Above cord outputs ID=&amp;quot;999&amp;quot; in HTML, then becomes HTML validation error.&lt;br /&gt;
When I add prefix(eg:&amp;quot;postid_&amp;quot;) in the upper line to evade a validation error, will it cause other bugs?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/1282/post-id-in-html</guid>
<pubDate>Tue, 08 Jun 2010 21:59:23 +0000</pubDate>
</item>
<item>
<title>About email-check at feedback form.</title>
<link>https://www.question2answer.org/qa/1094/about-email-check-at-feedback-form</link>
<description>There is a confirmation(request) about email-address of feedback.&lt;br /&gt;
If email is not blank, hope to check it before qa_send_email() like user's registration. Now, if email-address is invalid, transmit it(?).&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/1094/about-email-check-at-feedback-form</guid>
<pubDate>Mon, 24 May 2010 05:10:54 +0000</pubDate>
</item>
<item>
<title>User Validation ?</title>
<link>https://www.question2answer.org/qa/1079/user-validation</link>
<description>Is there a way to validate user email before he can start posting questions ?</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/1079/user-validation</guid>
<pubDate>Sun, 23 May 2010 10:25:14 +0000</pubDate>
</item>
</channel>
</rss>