Form Help

TOPIC:

how to create a txt file? 2 weeks 5 days ago #257763

  • Topic Author
  • le5
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Hello

I would like for first just create a simple file.

Found this code somewhere on your site.

Please add this to your form => advanced => more options => submit pieces => end submit => click "custom":

$data = 'Date: ' . date('Y-m-d H:i:s') . "\n";
ob_start();
print_r($_REQUEST);
$data .= "Request Data: \n" . ob_get_contents();
ob_end_clean();
$data . = "
\n";
file_put_contents(JPATH_SITE . '/bflog.txt', $data, FILE_APPEND);

Just created an error.

made it then simpler

$data = 'Date: ' . date('Y-m-d H:i:s') . "\n";
file_put_contents(JPATH_SITE . '/bflog.txt', $data, FILE_APPEND);

but still error.

My form uses form pieces => before form for ajax routines and is a one-page layout.

any advise how I can generate a file after form is successfully submitted?

Just need some little starter help. Goal is to create an xml-file. But for beginning a simple txt-file would help to understand.

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

how to create a txt file? 2 weeks 5 days ago #257766

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

here is explained how to create a txt file with data from submitted form:
crosstec.org/en/forums/15-usage/129120-c....html?start=0#252394

Let me know if you need more help

Regards,
Tihana
The following user(s) said Thank You: le5

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

how to create a txt file? 2 weeks 5 days ago #257770

  • Topic Author
  • le5
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Thanks Tihana

Worked perfectly!

Greetings

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.044 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!