html
<form action="https://php.tomgdow.com" method="POST" id="form_one">
<fieldset>
<legend>Personal Information</legend>
<div class="box">
<div>
<label for="name">name</label>
<input type="text" name="param1" id="name"><br>
</div>
<div>
<label for="email">e-mail</label>
<input type="email" name="param2" id="email" required><br>
</div>
<div class="submit">
<input type="submit">
</div>
</div>
</fieldset>
</form>
php (server)
// index.php (server)
<?php
echo
htmlspecialchars($_POST["param1"])."&"
.htmlspecialchars($_POST["param2"])."&"
.htmlspecialchars($_SERVER['HTTP_HOST']);
?>
Notes
Using POST
method
References