[course enroll]

 

Please click here to see Ashoka's courses and to enroll in a course >>>





<%args> $id <%init> use CGI::Cookie; use Ashoka::Contact; use Ashoka::Course; my $course = Ashoka::Course->retrieve($id) || $m->redirect('/bad_request.html'); my %cookies = CGI::Cookie->fetch; my $email = ''; if(ref $cookies{ContactID} and UNIVERSAL::can($cookies{ContactID},'value')) { my $cookie = $cookies{ContactID}->value; if(my($contact) = Ashoka::Contact->search(cookie => $cookie)) { $email = $contact->email || ''; } }