Search found 14 matches

by NTGr
Tue Jun 26, 2007 12:55 pm
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

Thank you feyd....
Don't blindly use submission values. Check for their existence before use. There's no exceptions to this really.


Sure....
thank you ALL once again for your help !!!


8)
by NTGr
Fri Jun 22, 2007 3:16 am
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

Thank you superdezign :D I didn't write this, but I always use it. The .htaccess way is perfectly valid as well. I just prefer not to clog up mine, that's all. Yours is probably already clean. Yes its clean sicnce i havent touch it yet !!!! Thank you once again 8) feyd wrote.. Looking for the submit...
by NTGr
Thu Jun 21, 2007 4:48 pm
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

Thank you superdezign....once again!!!
Can you please be more specific ???
A sample code maybe ???
I dont want to give me the exact answer BUT at least give me a way to discover what you mean...
I know,you explain this several times ..but i dont get it....sorry :oops:
by NTGr
Thu Jun 21, 2007 6:33 am
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

thank you oce again superdezign !!!!!!! Reading in http://www.php.net/manual/en/security.magicquotes.php#55935 to turn of magic quotes put the following line into the .htaccess file: php_flag magic_quotes_gpc off So i think that is what you wanted to say ... Can be rewritten as this: if(empty($_POS...
by NTGr
Thu Jun 21, 2007 4:35 am
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

better ??

if(!isset( $_POST['categoryboth']) || $_POST['categoryboth']=== '') { $error_cat='<font color="red"> Error in <strong>Category</strong></font>' ; $error_msg=$error_msg+1 ; } else { $categoryboth=(isset($_POST['categoryboth']) ? $_POST['categoryboth'] : "" ); $error_msg=''; $cate...
by NTGr
Wed Jun 20, 2007 4:29 pm
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

CORRECTION...

seems that sould be... $categoryboth=(isset($_POST['categoryboth']) ? $_POST['categoryboth'] : "" ); $error_msg=''; $categorybothA=(is_array($allowed_category) && !in_array($categoryboth,$allowed_category) ? true : false); $error_cat=($categorybothA==true ? '<font color="red&q...
by NTGr
Wed Jun 20, 2007 2:53 pm
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

superdezign ..thank you for the answer.... Your method of creating an "allowed categories" array is intuitive what you mean..my dictionary is not giving me the right meaning of the word intuitive :) aside from you not checking if $_POST['categoryboth'] exists before using it You mean some...
by NTGr
Wed Jun 20, 2007 11:56 am
Forum: PHP - Security
Topic: List Meny PREDEFINED Values validation..
Replies: 15
Views: 3507

List Meny PREDEFINED Values validation..

Hello. its the first time i m trying to secure what user ender in form field..so please be gentle with me :oops: Lets say that i got a simple form... $test='<form action="" method="post" name="upl_form"> <select name="categoryboth"> <option value="">...
by NTGr
Sat May 26, 2007 6:45 am
Forum: PHP - Theory and Design
Topic: Search Engines Friendly links...
Replies: 7
Views: 1702

Thnx..scottayy

Thnx scottayy.....
:D 8)
by NTGr
Sat May 26, 2007 4:25 am
Forum: PHP - Theory and Design
Topic: Search Engines Friendly links...
Replies: 7
Views: 1702

It's good practise to "build" all URLs in your application with a function you create, such as create_url($path). For example rather than hard-coding: Can you pls give me a HINT how this function must be ??? OR some links(tutorials) to read more about ?? Thnx Once again.....
by NTGr
Sat May 26, 2007 3:41 am
Forum: PHP - Theory and Design
Topic: Search Engines Friendly links...
Replies: 7
Views: 1702

Thnx....

Thnx..
IF i uderstand correctly i sould use mode_rewrite to RECREATE the LINKS ....RIGHT???

This will effect the way my pages work?? since cid & pid are values used by several functions

Thnx again....
by NTGr
Fri May 25, 2007 12:53 pm
Forum: PHP - Theory and Design
Topic: Search Engines Friendly links...
Replies: 7
Views: 1702

Search Engines Friendly links...

Hello. I m trying to understand what is the best way to build my links.. Any Help ??? So far i m building my links this way... For my HomePage... http://localhost/index.php?p=homebody For the categories... http://localhost/index.php?p=display&cid=1 and for the items.... http://localhost/index.ph...
by NTGr
Fri Apr 27, 2007 5:34 am
Forum: PHP - Theory and Design
Topic: Secure that FORM submited from the expected page...
Replies: 4
Views: 1785

Thnx both. Of Caurse ALL User Input MUST VALIDATED... But i asked this cause i plan , each time that this kind of EXTRA PROTECTION fail , To.. 1st)Log-OUT the USER(since in my case ONLY registered Users Can POST Infos) 2nd) Temp-Bann the IP 3rd)E-mail security ADMIN that something goes wrong.. 4th) ...
by NTGr
Fri Apr 27, 2007 4:02 am
Forum: PHP - Theory and Design
Topic: Secure that FORM submited from the expected page...
Replies: 4
Views: 1785

Secure that FORM submited from the expected page...

Hello. I always wanted to ask this .... HOW CAN BE SURE that the values submited from the proper FORM/PAGE ??? What i mean: Lets say that i want to use a form that submits infos to the same page... <form name="form1" method="post" action="same_page.php"> <input type=&qu...