Jump to content
Undefined Index psp notice
Asked by Blackwell_Paul
Posted Jul 18 2012 07:40 AM
I entered in the below php sample code: <?php echo $_REQUEST['name']; ?> and then run the script. Now I get an error message Notice: Undefined index: name in C:\PHPMySQLMissingCD\PHP_ch01_files\scripts\sayHelloWeb.php
I am calling the correct file on the html side: <form action="scripts/sayHelloWeb.php" method="POST">
When I try to veiw the code through the browser one of two occurs:
1. The html will appear but the php data will not.
2. The html data will appear correctly but when I call the php The following page is source code.
What am I doing wrong? Please respond.
Answered by yagu
Posted Jul 22 2012 05:51 AM
you can use error_reporting(E_ALL^E_NOTICE) function at the starting of your page which will not show msg
you @ sign un front of your statement giving notice or warning
compare variable u have used in $_request and form input element's name both should be equal
for android beginner android help