Advertisement

01.07.2008 at 01:55PM PST, ID: 23064946
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Form validation on $_GET variables - How to secure a php script

Asked by thyros in PHP Scripting Language, Server Side Includes (SSI), WebApplications

Tags: , ,

I have a php script (see attachment) which uses the $_GET variable, and I am told it is advisable to perform some validation on these variables, however I have no idea how to do so.

If anyone knows, please let me know.  Thanks.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
<?php
 
echo "<div class=\"overflowing\" style=\"width:100%; height:100%;\">";
 
$url = 'http://www.mysticletters.com/cgi-bin/islamkit/islamkit.cgi?action=ReadQuran';
if (isset($_GET['QuranName'])) {
   $url .= '&QuranName=' . urlencode($_GET['QuranName']);
}
if (isset($_GET['Translation'])) {
   $url .= '&Translation=' . urlencode($_GET['Translation']);
}
if (isset($_GET['Transliteration'])) {
   $url .= '&Transliteration=' . urlencode($_GET['Transliteration']);
}
if (isset($_GET['Interpertation'])) {
   $url .= '&Interpertation=' . urlencode($_GET['Interpertation']);
}
if (isset($_GET['Surah'])) {
   $url .= '&Surah=' . urlencode($_GET['Surah']);
}
if (isset($_GET['Ayah'])) {
   $url .= '&Ayah=' . urlencode($_GET['Ayah']);
}
 
if (isset($_GET['Layout'])) {
   $url .= '&Layout=' . urlencode($_GET['Layout']);
}
if (isset($_GET['SurahReciter'])) {
   $url .= '&SurahReciter=' . urlencode($_GET['SurahReciter']);
}
if (isset($_GET['AyahReciter'])) {
   $url .= '&AyahReciter=' . urlencode($_GET['AyahReciter']);
}
if (isset($_GET['Lang'])) {
   $url .= '&Lang=' . urlencode($_GET['Lang']);
}
 
echo file_get_contents($url);
 
echo "</div>";
?>
 
 
[+][-]01.07.2008 at 02:02PM PST, ID: 20603690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 06:16PM PST, ID: 20605430

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, Server Side Includes (SSI), WebApplications
Tags: secure, php, form
Sign Up Now!
Solution Provided By: dr_dedo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.08.2008 at 08:27AM PST, ID: 20609894

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 08:30AM PST, ID: 20609939

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.08.2008 at 08:31AM PST, ID: 20609947

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 08:35AM PST, ID: 20609993

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 08:42AM PST, ID: 20610063

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 09:15AM PST, ID: 20610503

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 09:26AM PST, ID: 20610594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 09:28AM PST, ID: 20610618

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 10:08AM PST, ID: 20610976

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.08.2008 at 12:23PM PST, ID: 20612345

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628