PHP Parse error: syntax error, unexpected T_FOR, expecting ';' urgent

hi i need urgent help to fix this php error but i do not know about php code

my error reports

PHP Parse error: syntax error, unexpected T_FOR, expecting ‘;’ in /home/process-paypal-exe.php on line 7

see below

<?php include_once( "conn.php" ); include_once( "functions.php" ); $req = "cmd=_notify-validate"; foreach ( $_POST as $key=>$value ) { for ( ; for ( ; for ( ; $value = urlencode( stripslashes( $value ) ), $req .= "&".$key."=$value", } ............

what are you looking for with "for ( ; for ( ; for ( ; "?

for syntax are

for($a=0; $a< $b; $a ++)

first parameter are variable and asing (optional) a value
second parameter are the finisehd condition
third pararameter must be the increment (decrement) of each loop.

Sponsor our Newsletter | Privacy Policy | Terms of Service