HTML code:
<form method="post" action="viewpage.php?page_id=5">
Email: <input name="email" type="text"><br>
Full Name: <input name="name" type="text"><br>
Age: <input name="age" type="text"><br>
Summoner Name: <input name="summon" type="text"><br>
Do you have vent? <input name="vent" type="text"><br>
Do you have a mic? <input name="mic" type="text"><br>
How often can you be on? <input name="online" type="text"><br>
What level are you? <input name="level" type="text"><br>
Who do you like to play as? <input name="champs" type="text">
</form><br>
Can you help donate to the clan for vent and the site?<br>
<textarea name="name" rows="7" cols="25"></textarea><br>
Before you say anything about the PHP not scripted to do all fields, I already know this I'm trying to figure out how to send multiple ones in one message:
PHP Code:
<?php
if (isset($_POST['submit'])) {
$to = "hidden for privacy";
$subject = "LoL Recruitment";
$email = $_REQUEST['email'] ;
$message = ($_REQUEST['name'], $_REQUEST['age']) ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if($sent) {
print "Your mail was sent successfully";
} else {
print "We encountered an error sending your mail";
}
}
?>
I'm willing to bet my
$message = ($_REQUEST['name'], $_REQUEST['age']) ;
if FAR wrong