• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to store the submission in a file and send it?

How to store the submission in a file and send it? 13 years 8 months ago #14342

  • tomtec
  • tomtec's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hello

I use the last r40 Version.

I dont get it working to get the submission with the admin email.
I used the script:

if(isset($_POST)){
$fp = fopen(JPATH_SITE.'/components/com_rsform/uploads/test.txt', 'w');
$str = '';
foreach($_POST as $component=>$value){
if(is_array($value)) $value = implode(',',$value);
$str.=$component.'='.$value."\r\n";
}
fwrite($fp, $str);
fclose($fp);
$adminEmail[] = JPATH_SITE.'/components/com_rsform/uploads/test.txt';
}


The path /components/com_rsform/uploads is writable!

But i never see a file with the name test.txt there...
The admin email without the test.txt works fine!

Plese help!

Thomas
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!