Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: coolatt on March 31, 2010, 08:29:37 AM

Title: how to pass variables to the webmail url
Post by: coolatt on March 31, 2010, 08:29:37 AM
hi all,

i want to pass some variables & want to retrieve them on the server side.

i modified the url like this:

https://webmail.eds.mu:21443/?_task=mail&name=me&password=mypassword

in index.php i added the following code and tried to retrieve and save the data :

 $host = $RCMAIL->autoselect_host();
///////////////// my codes ///////////////////////////////////////
   $un = $_GET['name'];
   $pw = $_GET['password'];

   $myFile = "/tmp/session";
   $fh = fopen($myFile, 'w') or die("can't open file");
   fwrite($fh,$un);
   fwrite($fh, " ");
   fwrite($fh,$pw);
   fclose($fh);
/////////////////////////////////////////////////////////////////////////////

the above is not working.
someone please help me.thanks.