Form with POST, how to get variable into Form : <p>I wanna make a form where the variables are gotten by the URL
My_url com/email.html?name=Myname </p>

<p>For example the name is introduced by default as "MyName"
<a href="https://i.stack.imgur.com/SgBai.png" rel="nofollow noreferrer">IMAGE</a></p>

<p>How would could I do this?
The HTML code.
<a href="https://codepaste.net/sqq43i" rel="nofollow noreferrer">https://codepaste.net/sqq43i</a></p>

<p>The PHP code.</p>

<pre><code>$field_name = $_POST['name'];
$field_email = $_POST['email'];
$field_message = $_POST['text'];

$mail_to = 'MyMail';
$subject = 'Message from a site visitor '.$field_name;

$body_message = 'From: '.$field_name."\n";
$body_message .= 'E-mail: '.$field_email."\n";
$body_message .= 'Message: '.$field_message;

$headers = 'From: '.$field_email."\r\n";
$headers .= 'Reply-To: '.$field_email."\r\n";

$mail_status = mail($mail_to, $subject, $body_message, $headers);
</code></pre>
