note 66453 deleted from function.is-numeric by bjori
| From: | bjori@php.net | Date: | Tue, 23 May 2006 13:44:25 +0000 |
| Subject: | note 66453 deleted from function.is-numeric by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111874@lists.php.net to get a copy of this message | ||
Note Submitter: lia
----
hello, I want to make two buttons delete and edit.there is not a syntax error, but it appears the
error message of echo "this page has accessed in error!", if I write an echo command
before if command the message i wrote appears.Probably there is a problem with &_GET or the
command (is_numeric($_POST['id'])).
here is the code with the error message:
if((isset($_GET['id']))&&C) ){
$id=$_GET['id'];
}elseif((isset($_POST['id']))&&(is_numeric($_POST['id'])) ){
$id=$_POST['id'];
}else{
echo '<h1>page error</h1><p class="error">this page has accessed in
error!</p>';
exit();
}