I need to pass the input/data from page 1 to page 2 and page 2 will then email the data to an email address. I found the below script for a website but it insert the data into a database. Can someone please help change the last part to emailing it? Thx.

Page 1
Code:
<form method="post" action="form2.php">
    <input type="text" name="name">
    <input type="text" name="email_address">
    <input type="submit" value="Go To Step 2">
</form>
Page 2
Code:
<?php
//let's start the session
session_start();
//store our posted values in the session variables
$_SESSION['name'] = $_POST['name'];
$_SESSION['email_address'] = $_POST['email_address'];
?>
<form method="post" action="form3.php">
<input type="radio" name="membership_type" value="Normal">
<input type="radio" name="membership_type" value="Deluxe">
<input type="checkbox" name="terms_and_conditions">
<input type="submit" value="Go To Step 3">
</form>

Last Part
Code:
<?php
//let's start our session, so we have access to stored data
    session_start();
//let's create the query
$insert_query = 'insert into subscriptions (
                name,
                email_address,
                membership_type,
                terms_and_conditions
                        ) values (
                " . $_SESSION['name'] . ",
                " . $_SESSION['email_address'] . ",
                " . $_SESSION['membership_type'] . ",
                " . $_SESSION['terms_and_conditions'] . "
                        );
//let's run the query
mysql_query($insert_query);
?>