• 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: POST form data

POST form data 12 years 9 months ago #14440

  • timipl
  • timipl's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello

At the beginning i want say that searched the forum about 3 hours but i don't find exactly help on my problem. I don't know a lot about php :/.

I would like add script to
Script called on form process
who get data from my form called
register

fields :

username
password
email
date

and write all this data to file for example /tmp/users (line by line) and next run command on server
/bin/newuser $username $password $email $date

I try use this script to write only all data but obviously is not working :/ :
$fh = fopen('/tmp/test.txt', 'a');
 
fwrite($fh, print_r($_POST['form']['username']['password']));
 
fclose($fh);
Thank you very much for all answers : )
The administrator has disabled public write access.

Re:POST form data 12 years 8 months ago #14454

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 731
  • Thank you received: 60
Hello,

The following article describes how to write the form data into a txt file and attach it to the admin email:

www.rsjoomla.com/customer-support/docume...rough-the-email.html

You could try using the script from this article as a starting point for your described scenario.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!