Notice: Undefined index: userID in C:\xampp\htdocs\fuel_prepaid\editp

  • updated
  • Answered

I am trying to preview my form that i have created, but when I preview it it gives me:

Notice: Undefined index: userID in C:\xampp\htdocs\fuel_prepaid\editprofile.php on line 46 at the top of my form.

this is my code:

Could not save account details!

');

}

mysql_close($connect);

}

}

?>

#header{

width:800px;

height:150px;

background-image:url(img/new.jpg)

}

#Navigation {

width:800px;

height:35px;

background-color:#F0F;

}

#Space{

width: 800px;

height: 300px;

background-color: #C96;

}

#Footer{

width:800px;

height:25px;

background-image:url(img/footer.gif)

}

a:link{color:#0FF;

text-decoration:overline

}

a:hover{

color:#F00;

text-decoration:line-through

}

#new_user {

border-left:#000 thin solid;

}

#Space #form1 table tr td table tr td {

font-family: Georgia, Times New Roman, Times, serif;

}

Registration

Home    News    Login    About Us

Please enter all registration details!

'; } if($allSaved === true) { print '

Your user account details have been saved.

'; } ?>

Registration
Please Register your username and password below!
Username :

Password :

 &#160

 

Existing users Log in here

Arn
Hello JFlexx, Sorry for the problem with your Xampp installation. We unfortunately do not provide support for Xampp as it is not something that can be used within our hosting environment. However, I googled your error message and have found a possible answer for your listed issue. Check out this post for the possible solution. I hope that helps to answer your question! If you require further assistance, please let us know! Regards, Arnel C.
-1
johnpaulb-imhs1
Hello JFlexx, Thank you for contacting us about an "undefined index" error on a form in your xampp server. Typically this error happens when you are attempting to use a variable that has not been defined yet. Unfortunately, we are unable to properly troubleshoot a xampp environment, since we do not have access. Here is a helpful link to our guide on How to create a custom PHP contact form with validation. It includes a successful example. Let us know if you have any further questions. Thank you, John-Paul