Questions tagged [undefined-index]

An index is undefined if it is not part of the array being accessed. Use this tag for questions regarding behaviour of undefined indexes or when you see undefined indexes where you don't expect them.

This notice appears when you try to access an undefined index of an array. These commonly appear when working with $_POST, $_GET or $_SESSION variables in PHP.

Use this tag for questions about the behaviour of undefined indexes or when you see undefined indexes where you don't expect them.

276 questions
0
votes
4 answers

index undefined php with $_POST

I am trying to get rid of the index undefined. Every time I click submit without ticking the box, I get an undefined index error. Order
user2732815
  • 55
  • 1
  • 2
  • 10
0
votes
1 answer

AJAX/JQuery File Upload - undefined index on 8th Image, handled by PHP

I am using the code from this place: Uploading Multiple Files using AJAX Upto 7 images get uploaded (of approx size 1MB), and when I am doing the 8th image (OR When I have selected equal to or more than 8 images), this error comes back: Notice:…
Nirav Zaveri
  • 687
  • 1
  • 9
  • 28
0
votes
0 answers

Post variable is set but shows undefined index error

I want to select a row from MySQL database which there are multiple rows. I've chosen radio button for selection and I've put id of that row in radio button value. The problem is the posted radio button is set and when I echo it as you can see in…
0
votes
4 answers

Notice: Undefined index: username on line 10

I get this error when I ran my php code! any help on what I need to do to fix it? Notice: Undefined index: username in C:\xampp\htdocs\Slamza\login.php on line 10 Notice: Undefined index: password in C:\xampp\htdocs\Slamza\login.php on line…
RukzOG
  • 13
  • 1
  • 1
  • 2
0
votes
1 answer

Undefined Index for ... existing index?

OK, that's more than weird... Here's my code : public function results($id,$pattern=3) { $this->load->library('session'); if (!$this->session->userdata('logged_in')) { …
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
3 answers

Codeigniter Undefined Index Online Shop

Codeigniter Undefined Index Online Shop: For some reason i am getting back "Undefined index: grouping in the controller. I have added both the controller and the model below. I have just added the getProduct() code as well /*Here is my model*/ …
user2531490
  • 17
  • 1
  • 5
0
votes
6 answers

PHP validation form not returning correct response

I'm new to PHP and trying to write a bit of code that validates a form on the same page before then submitting the post to a database. What i want is for the code to; ask if any of the fields have been filled if so check if any of the fields are…
Max
  • 3
  • 2
0
votes
3 answers

Undefined index: status

My PHP code
Nico David
  • 1
  • 1
  • 5
0
votes
2 answers

Notice: Undefined index with while loop

I'm receiving the following error in php: Notice: Undefined index: panel_num. I think I need to use isset() but I can't seem to get it to work with while global $d; $i = 1; while($i <= $d['panel_num']){ $options[] = array( …
teamcrisis
  • 709
  • 1
  • 6
  • 14
0
votes
4 answers

Undefined index while uploading

I have a problem that i just quite do not understand at all. I have this uploading script that always return Notice: Undefined index: uploadPDF in xxxxx I've made sure that the form has the enctype="multipart/form-data"
Oleaha
  • 130
  • 1
  • 2
  • 10
0
votes
2 answers

Undefined index for ID with $_GET

Well, yet another undefined index appears : I am trying to change a select row in a database, but so far it doesn't seem to work, I only get Notice: Undefined index: EierID in C:\WampServer\www\Hundeklubben\ChangeO.php on line 19. I have tried…
The Last Melody
  • 165
  • 1
  • 3
  • 10
0
votes
1 answer

Field Collection Output: Undefined index: entity in template_field__custom_field drupal 7

perhaps you have an idea how I can solve the following problem. I rewrite a field-collection-field in my template.php to change the output. Therefore I just added a new var ($my_classes) which contains a specific value. This value comes out of the…
0
votes
3 answers

Sending POST Request headers to web server

I am trying to send a POST request to a php file located on a web server. Currently I am successfully sending the request but the headers are not being sent correctly. Below is my query string I would like to…
Javacadabra
  • 5,578
  • 15
  • 84
  • 152
0
votes
2 answers

PHP Undefined Index error - isset does not seem to mitigate

I'm helping a client with an older website an am coming across code which was written several years ago (not sure if this is relevant, but I mention it just in case) and keep getting an Undefined index error, despite using the various suggestions…
0
votes
2 answers

Undefined index: email in C:\wamp\www\emailvalidate.php on line 4

I am new to Ajax. In my Ajax I get the following error message : Notice: Undefined index: address in C:\wamp\www\test\sample.php on line 4 I googled but I didn't get a solution for my specified issue. Here is what I did. HTML Form with Ajax…
klari
  • 25
  • 2
  • 5