You need to sign in to do that
Don't have an account?
mohi
regarding custom object:plz specyfy
dear
i made a custom object candidaeinformation with feild; firstname , last name ,password ,phone ,email
Error: token error
this is for login:controller
public class Registration
{
private string FirstName{get;set};
private string password{get;set};
public String getFirstName()
{
return this.firstName;
}
public String getpassword()
{
return this.password;
}
public void setFirstName(String FirstName)
{
this.FirstName = FirstName;
}
public void setpassword(String FirstName)
{
this.Password = Password;
}
list mylogin=[select firstname, password from candidateinformation];
public PageReference save ()
{
for(candidateinformation c: mylogin)
{
if(c.firstname==firstname && c.password==password)
{
page.success;
}
}
return null;
}
}
visualforcepage:unknown property firstname
>
use firstName instead of firstname;
wheever you refer a custom object and field, ist name should be appendedd with __c.
you are not doing that.
candidateinformation__c, firstname__c,password__c etc.