+ Start a Discussion

pls give me solution what to do

here my task is to create a student register form for college website........register form should contain some fields like first name ,last name.....id no,and submit button. when i click on the submit button the record should passes to admin for permission.if the id no matches the activation link ll send to student through email.....; i created the register form but my problem is how to send the record to admin ...

You could try using another class using 'without sharing' 

public abstract without sharing class AdminRights{
    public static Boolean checkActivationLink(String paramLink){
        Boolean returned = false;
        // your logic here
        return returned;

 and then, call checkActivationLink method from your page