Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
thanks all!
how do I configure the web server side? and is there any ways to put category? like purposes of contacting
general inquiry
booking
question about item
advertisement
and etc?
thanks in advance!
<form action="contactus.php?act=submit" method="post">
Your name: <input type="text" name="name"><br>
Your email: <input type="text" name="email"><br>
Comments:<textarea name="comm"></textarea><br><br>
<input type="submit">
</form>
<?php
$name = Sanitize($_POST['name']));
$email = Sanitize($_POST['email']));
$comm = SanitizeMultiLine($_POST['comm']));
mail("[email protected]","Form submission from ".$name,$comm,"From:".$from."<".$email.">")
echo("Thanks, we probably received your comment (but did not bother doing error checking, so maybe not!)");
?>
Code:<form action="contactus.php?act=submit" method="post"> Your name: <input type="text" name="name"><br> Your email: <input type="text" name="email"><br> Comments:<textarea name="comm"></textarea><br><br> <input type="submit"> </form>
if ($_SERVER['REQUEST_METHOD'] === 'POST')
There's no reason to add the "?act=submit" to your form action, because on the server side you can divine what the user is doing in that case like this:
Code:if ($_SERVER['REQUEST_METHOD'] === 'POST')
Yeah did that by habit. If I have more than one form on the same page they'll typically have their own action. But yeah for this particular example it would not be needed. You can also check if the submit button is "set" since whatever you put for the value will be sent. Different ways to do it.
Only idiots fill forms, if you really want to talk to your customer just put a phone #