Unnamed
public text v1 · immutable<?php
//Let's just pretend the HTML is already done up there ^^ we have to fields: name and email.
//And a submit button.
//So, first let's make sure we pressed the submit button, we will do this by using isset.
if(isset($_POST['submit']))
//Submit button was pressed.
{
//So we will assign vars.
$name = $_POST['name'];
$email = $_POST['email'];
}
else
{
//we did not press the submit.
}