The default method for a form is "get", so the inputs will be in the
array instead of
. To change this, modify your form element:
<form action="spost.php" method="post">
You should check to see if the values are defined and valid too - it is possible to bypass your form and directly submit data to the processing page.