An user is at my site Mysite.com/exam/mathematics.htm , After clicking on a link (say test-1) another page will open – which is not a part of drupal system but with in the same domain. Now after completing the exam on test-1 , I would like to take the user results to my database with the user id.. So is there any way in this situation I can get the user id from that external page

Comments

Chill35’s picture

Maybe by creating a very simple form. Instead of using a link, create a basic (non-Drupal) form with a submit input element.

In that form, send the user id, that you can get with :

global $user;
$userId = $user->uid;

Make that value a hidden input...

I guess the page where you send the user is just plain html though...

Caroline
Who am I | Where are we
11 heavens

nishitdas’s picture

Thanks
I will try this