PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm quite sure im collecting the text name 'login' from inside the definition of the variable $form. But im still getting that notice in the browser for the part of the code where im attempting to apply $_POST['login'] in the if statement condition.
Can anyone help? I am new to this so is probably a pretty straight forward solution.
Well, how are you getting this message? Ware you browsing to loginC2S.php or are you browsing to index.php and it is including/requiring it?
Are you getting this message when you just browse to the page, or after you submit a form to the page in question (unless you have other checking to make sure the form is submitted, you WILL get that message the first time you go to the page if you are not arriving there from another form's submission
If a variable may or may not be there, you can check if it's empty() or if it's isset()
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
approach and it now works fine, thank you. Would i do exactly the same thing if i wanted to assign variables to the other values in the form also; such as 'user' and 'pass', so as they can be verified?
if (!empty($_POST['user']) && !empty($_POST['pass']))
{
//continue with processing form
}
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.