Danack / PHP-to-Javascript

A tool for converting simple PHP objects/code to Javascript, so that code for manipulating objects can be used both server-side and client-side.
Other
104 stars 32 forks source link

contact form #68

Closed PcGamer49 closed 7 years ago

PcGamer49 commented 7 years ago

Hello, I have a question, it is also possible to use a contact form to convert javascript, who can help me please

With friendly greetings

Contacteer ons - KMO

Contact

Do you have a specific question, do you want more information          or do you want a free visit from a representative          please fill in the information below. We will soon contact.

<?php $naam = $_POST['name']; $email = $_POST['email']; $vraag = $_POST['demand'];

$formcontent=" Van: $name \n Email: $email \n demand: $demand"; $recipient = "test@pi.be"; $subject = "Contact Formulier Website"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); header("Location: thanks.php"); ?>

Danack commented 7 years ago

Hi @PcGamer49,

Really, the only thing this library should ever be used for (and even then it's dubious) is converting trvially simple objects and functions to Javascript.

It doesn't sound like that would fit your use-case.

cheers Dan