Author Topic: how to pass variables to the webmail url  (Read 3252 times)

Offline coolatt

  • Jr. Member
  • **
  • Posts: 13
how to pass variables to the webmail url
« 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.