PHP Classes

File: Examples/submit.php

Recommend this page to a friend!
  Classes of Clement Sam   PHP Document Generator   Examples/submit.php   Download  
File: Examples/submit.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Document Generator
Convert HTML to MS Word and Excel and CSV files
Author: By
Last change:
Date: 4 years ago
Size: 362 bytes
 

Contents

Class file image Download
<?php
include '../ewc_generator.class.php';


$text_input = $_POST['text_input'] ?? null;

if (
$text_input) {
 
$EWCGenerator = new EWCGenerator();

$gen = $EWCGenerator->create([
   
"file_name" => "default_ewc_generator",
   
"extension" => "doc",
   
"hasHTML" => true,
   
"document" => $text_input
 
]);

if (!
$gen) {
  echo
$gen;
}
}
?>