learn PHP , and then you can do all of that. We are here to help you with the code, not create it.
Here is the logic for your questions.
Submit the form using $_POST or $_GET , then check the mandatory fields, by checking there field length or something similar , then validate the email address, and then process the data.
ok , first off
this
<select name="whoto" size="1" id="whoto"><?php if (isset($missing)) {
echo 'value="'.htmlentities($_POST['whoto']).'"';} ?>
<option></option>
<option value="your@email.com">contact1</option>
<option value="your@email.com">contact2</option>
<option value="your@email.com">contact3</option>
<option value="your@email.com">contact4</option>
<option value="your@email.com">contact5</option>
</select>
wrong it should be
<select name="whoto" size="1" id="whoto">
<option selected="selected" <?php if (isset($missing))
echo 'value="'.htmlentities($_POST['whoto']).'"'; ?>><?php if (isset($missing))
echo htmlentities($_POST['whoto']); ?></option>
<option value="your@email.com">contact1</option>
<option value="your@email.com">contact2</option>
<option value="your@email.com">contact3</option>
<option value="your@email.com">contact4</option>
<option value="your@email.com">contact5</option>
</select>
The rest ,looks ok at a quick glance.
change this
$_SESSION['logged'] = 1; // Sets the session.
header("Location: members.php?email=$email"); // Goes to main page.
to
$_SESSION['logged'] = 1; // Sets the session.
$_SESSION['email'] = $email;
header("Location: members.php"); // Goes to main page.
and on members.php
$email=$_GET['email'];
to
$email=$_SESSION['email'];
how should i know , you have shown i line of code.
And please start learning , we are here to help coding , not to do it for you.
http://www.tizag.com/phpT/
http://www.w3schools.com/PHP/
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.