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 can't seem to get this to work. I am trying to get a page to display only if they entered there e-mail address, and for other purposes, I want it to store it in a session (a cookie might also work).
According to the logic if (count($_SESSION['email']) <= 0) and ($email != '') then you should see nothing -- exactly as programmed.
Note that in the first elseif you have an assignment -- not a logic test -- with ($email='') so $email will always be null and therefore always evaluate to false.
I tried "ambivalent" suggestions and got this error:
Notice: Undefined variable: _post in /homepages/htdocs/mysite/test.php on line 4
Arborint, would you mind to show me specifically the changed script that works, i have tried it myself and i cant seem to get it to work, sorry im a begginer at this,