PHP send form data not using ajax/jQuery
<p>How would I go about submitting form data without using HTML forms. </p>

<p>I only need to send 1 input to example.php, and would like stay away from ajax/jQuery.</p>

<p>Also is it possible to send it in the background without redirecting/refreshing the page.</p>

<p>The code below is as far as I have gotten. I would like it to send <code>input_1</code> and it's value <code>value 1</code>
once the page loads to <code>example.php</code> without the page redirecting. </p>

<pre><code>theForm = document.createElement('form');
theForm.action = 'example.php';
theForm.method = 'post';
newInput1 = document.createElement('input');
newInput1.type = 'hidden';
newInput1.name = 'input_1';
newInput1.value = 'value 1';
</code></pre>
