TOPIC:

Create a txt-File on server with form data 8 months 2 weeks ago #252346

  • Topic Author
  • mario.kaufmann@googlemail.ch
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 61
  • Thanks: 0
Hi
I would like to do a subscription Form with Breezingform. The subscriptions should save also in a txt-file on my server.

Form Input fields:
-First Name
-Name
-Date of birth

In the txt-file it should save it in this order (See also the attached example):

FirstName;LastName;DateOfBirth
Hans;Muster;01.01.1950
Jacky;Ringer;14.09.1937
Marc;Feng;09.10.1989
Steven;Kohl;25.05.1977

Does somebody know how I can do that?
Attachments:

Please Log in or Create an account to join the conversation.

Create a txt-File on server with form data 8 months 2 weeks ago #252378

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6920
  • Karma: 3
  • Thanks: 493
Hi,

before I should test this.
You created a txt file on server and want to "write" submitted data in this file?

Also, you can use an alternative.
You can save data on google spreadsheets using gdata plugin.
Here is explained how to use this:
crosstec.org/en/forums/24-packages/12909...adsheets.html#252241

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Create a txt-File on server with form data 8 months 2 weeks ago #252380

  • Topic Author
  • mario.kaufmann@googlemail.ch
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 61
  • Thanks: 0
Hi Tihana

Thanks for your response.
"You created a txt file on server and want to "write" submitted data in this file?"
->Yes exactly.

Gdata: Thanks but I need the data on my server, that I can use it with another tool.

Best wishes
Mario

Please Log in or Create an account to join the conversation.

Create a txt-File on server with form data 8 months 2 weeks ago #252382

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6920
  • Karma: 3
  • Thanks: 493
Hi,

ok, give me some time to test this :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Create a txt-File on server with form data 8 months 2 weeks ago #252394

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 664
  • Karma: 4
  • Thanks: 112
Hi,

Create your txt file in the desired directory, e.g. includes/data.txt.

You insert the following text:
FirstName;LastName;DateOfBirth then you save the file and close it.

In the form -> Advanced -> more options -> Submit Piece -> Begin submit

You create a code like this:
$this->execPieceByName("ff_InitLib");

$file = "includes/data.txt";
$current = file_get_contents($file); 

$data1 = ff_getSubmit("firstName");
$data2 = ff_getSubmit("lastName");
$data3 = ff_getSubmit("dateOfBirth");

$current .= "\n" . $data1 . ";" . $data2 . ";" . $data3;

file_put_contents($file, $current);

Maybe this code can be improved...

Source = PHP Documentation

Regards,
Eddy

Please Log in or Create an account to join the conversation.

Last edit: Post by Eddy.vh.

Create a txt-File on server with form data 8 months 2 weeks ago #252400

  • Topic Author
  • mario.kaufmann@googlemail.ch
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 61
  • Thanks: 0
Hi Eddy

Thank you very much, it works perfectly!

Best wishes
Mario

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!