I went through most of the forums on the variety of ways to create a contact form within Hype and had no luck. The easiest option seems to be to pay for a contact form and embed it, but I don’t want to have to pay a monthly subscription for a simple contact form, and there is no control… And there are other worse but free alternatives like Google Forms, which do not allow for much customization.
What I did with another visual editor on the Mac (Sparkle) is I created one page (contact.html) which had multiple text input fields based on what type of content I wanted, then the submit button would link to another page called “messagesent.php”, which had the following code in an HTML widget:
<div style="width: 100%; min-height: 100%; font-size: 12px; line-height: 1; color: transparent">
<?php
$mailto = "email@email.com";
$subject = "Contact from website";
$message = "Values submitted:";
$header = "From: email@email.com";
foreach ($_POST as $key => $value) {
if (!is_array($value)) {
$message .= "\n".$key." : ".$value;
} else {
foreach ($_POST[$key] as $itemvalue) {
$message .= "\n".$key." : ".$itemvalue;
}
}
}
mail($mailto, $subject, stripslashes($message), $header);
?>
</div>
I tried to recreate this in Hype, but I had problems, as there doesn’t seem to be a simple text input feature within Hype. Also, it doesn’t allow me to have the “.php” extension. Is it possible to create a contact form that works within Hype and post it? Obviously the hosting service ultimately has to support PHP for it to work (which mine does).
I really need an option from within Hype.
-Jon