User Profile

Collapse

Profile Sidebar

Collapse
nitz06
nitz06
Last Activity: Nov 8 '12, 12:17 PM
Joined: Nov 7 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thanks for the replies... my code works now but I used some other codes.. neway thanks
    See more | Go to post

    Leave a comment:


  • how do I declare it? because after this code am using it in a condition like if $errorMessage is blank then do this or else this. But am confused on how to declare the variable "$errorMessage" . I looked for it on the net but got more confused as to different answers. Please help me :)
    See more | Go to post

    Leave a comment:


  • nitz06
    started a topic Writing a condition for a variable which stores text
    in PHP

    Writing a condition for a variable which stores text

    I have a form for registering. Am trying to prevent the person from entering too much of text for username and password but getting an error.

    my code is:

    Code:
    $uLength = strlen($regusername);
    $pLength = strlen($regpassword);
    if ($uLength >= 7 && $uLength <= 20)
    	{
    	$errorMessage = "";
    	}
    else 
    	{
    	$errorMessage = $errorMessage."Username must
    ...
    See more | Go to post
    Last edited by Rabbit; Nov 7 '12, 07:44 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...