A list of php error [closed]

Error #2 and #3: You have written a bit nonsense to the if() statement, mixed parts of what you intended to do. replace these two lines if(mysqli_num_rows((int)$sql_login>0)){ $result = mysqli_fetch_array($sql_login); with this one line if( $result = mysqli_fetch_array($sql_login) ){ Description of said one line code: If there is a record, $result will become an array, … Read more

PHP Errors – Total of four [closed]

The errors are: Notice: Undefined index: name in C:\wamp\www\contact.php on line 9 Notice: Undefined index: email in C:\wamp\www\contact.php on line 10 Notice: Undefined index: message in C:\wamp\www\contact.php on line 11 Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\contact.php on … Read more

Passing $_GET value to $_POST

if i understand you correct, you just want put all variables from $_GET to $_POST? foreach ($_GET as $key => $value) { $_POST[$key] = $value; unset($_GET[$key]); } print “<pre>”; var_dump($_POST); print “</pre>”; hope it helps… but at all i think there should be another way to get your vars to your file