post - PHP undefined index with xammp but not with host -
i've made php file , i've uploaded free host. works fine. when don't submit form, displays nothing. (here can see it: http://tuku.net63.net/test.php)
<form method="post"> <input name="name"></input> <input type="submit"></input> </form> <?php echo $_post['name']; ?>
but i've uploaded same file xammp server, , when don't submit form, displays error:
notice: undefined index: name in c:\xampp\htdocs\test.php on line 7
has php settings? don't know?
thanx!
your development server has warnings turned off, bad!
your production server has warnings turned on, potentially bad.
on development use: error_reporting(e_all);
errors , warnings. create sure you've got "display_errors" set true. ini_set("display_errors", 1);
php post xampp
No comments:
Post a Comment