Hi, I’m kinda new to the whole php coding world so hopefully somebody can help me.
I am creating a form for a website so bands can send me all their details via e-mail but i can figure out how to actually get all the information in the email as i got an error message saying
“Warning: mail() expects at most 5 parameters, 12 given in /home/lgslv/public_html/form_process.php on line 16”
how do i get all parts of the form sent?
here is my coding:
HTML Side:
[code]
Untitled Document body,td,th { color: #000; } label { display: block; float: left; width : 120px; }Band Name:
Contact Name:
Contact Number:
Contact Email:
Genre:
Size of Band:
Length of Set:
Cost of Set:
Website / Facebook etc Links
Do You Have A P.A: Yes No
[/code]
PHP Side:
[php]<?php
$band_name = $_POST[‘band_name’];
$contact_name = $_POST[‘contact_name’];
$number = $_POST[‘number’];
$email = $_POST[‘email’];
$genre = $_POST[‘genre’];
$size = $_POST[‘size’];
$length = $_POST[‘length’];
$cost = $_POST[‘cost’];
$links = $_POST[‘links’];
$pa = $_POST[‘pa’];
$to = “g*******@*******.com”;
$subject = “Largs Live Band Details”;
mail ($to, $subject, $band_name, $contact_name, $number, $email, $genre, $size, $length, $cost, $links, $pa);
echo “Your Details Have Been Sent”;
?>[/php]
any suggestions would be a great help!
Thanks