Php Error Undefined Index $_post
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings undefined index php error solution and policies of this site About Us Learn more about Stack Overflow meaning of undefined index error in php the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
How To Remove Undefined Index Error In Php
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only
Undefined Index In Php $_get
takes a minute: Sign up Undefined index errors accessing $_POST up vote 1 down vote favorite I keep trying to fix this but it's giving me the same errors: Notice: Undefined index: items in C:\xampp\htdocs\shop.php on line 9 Notice: Undefined index: body in C:\xampp\htdocs\shop.php on line 24 Here is my code:
"; if(isset($_POST['submit'])) { $body = $_POST['body']; $connect = mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db("feds",$connect)or die(mysql_error()); $merchandise = mysql_query("SELECT * FROM merchandise WHERE body_part='$body' ")or die(mysql_error()); while($row = mysql_fetch_array($merchandise)) { echo $row['item']; echo "
"; } } } ?> php html forms share|improve this question edited Nov 28 '11 at 18:20 user212218 asked Nov 28 '11 at 17:49 Matt Jones 612 Welcome on Stack Overflow. Your question doesn't really contain a question - so it will be difficult to answer (and it might be closed, too). –miku Nov 28 '11 at 17:52 What exactly are you trying to do, a multi-step form? –jeroen Nov 28 '11 at 18:31 add a comment| 7 Answers 7 active oldest votes up vote 3 down vote The error messages say that you're accessing an item of an array that doesn't exist! But in gen
here for a quick overview of the site Help Center Detailed answers to any
Undefined Index Php Post Ajax
questions you might have Meta Discuss the workings and policies undefined index error in php session of this site About Us Learn more about Stack Overflow the company Business Learn more about undefined index php array hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack http://stackoverflow.com/questions/8300068/undefined-index-errors-accessing-post Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up When I use $_POST in php , undefined index happened up vote -2 down vote favorite I am a PHP programmer, I am confused with the problem below, I http://stackoverflow.com/questions/14495094/when-i-use-post-in-php-undefined-index-happened am waiting for your guide . Thanks so much! There is the html code