note 66453 added to function.is-numeric
| From: | lia at osu1 dot php dot net | Date: | Tue, 23 May 2006 06:20:49 +0000 |
| Subject: | note 66453 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111848@lists.php.net to get a copy of this message | ||
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();
}
----
Server IP: 83.171.240.155 (proxied: 1.0 ACEISA)
Probable Submitter: 192.168.2.200
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.is-numeric.php
Edit -- http://master.php.net/note/edit/66453
Del: integrated -- http://master.php.net/note/delete/66453/integrated
Del: useless -- http://master.php.net/note/delete/66453/useless
Del: bad code -- http://master.php.net/note/delete/66453/bad+code
Del: spam -- http://master.php.net/note/delete/66453/spam
Del: non-english -- http://master.php.net/note/delete/66453/non-english
Del: in docs -- http://master.php.net/note/delete/66453/in+docs
Del: other reasons-- http://master.php.net/note/delete/66453
Reject -- http://master.php.net/note/reject/66453
Search -- http://master.php.net/manage/user-notes.php