If I have a form such as (not all the code just one field and my input):
<div id="login_form">
<form id="registration" method="post" action="results.php">
<label for="first_name"> First Name: </label>
<input type="text" id="first_name" name="first_name" maxlength="100" tabindex="1" />
<input type="submit" id="login_submit" name="submit" value="Submit"/ align="right">
</form>
</div>
Is it possible to grab the data from the form and then output that data to another page. The way I have it now I am just echoing the post from a form to a page:
<?php
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email_address = $_POST['email_address'];
echo 'Hello ';
echo "{$first_name} {$last_name}";
echo '<br/>';
echo '<br/>';
echo 'We have your email address as: "';
echo "{$email_address}";
echo '"';
?>
Im not sure how to get started but I would like the data from post to go to a class first. So if I create a class called registeredUser how would I grab that data from my form?