Hey, first of all - Awesome scripts, very helpfull
ok, so on my Contact form there are 5 secions. Name, Email, Experiance, Why, and Reply by. It's required to fill out all of the sections before you can submit, but once you hit submite, all that shows in the e-mail I recive from my form is the "Name" catagory. All the others are listed but are blank. I hope this makes sense...any help would be greatly appreciated. Thanks!
If you need me to clearify anything let me know
heres the script...
/*
########################## Contact Form 1.3 #########################
### |-----------------------------------------------------------| ###
### | WRITTEN 2006 by planetluc.com c/o Lukas Stalder | ###
### | THIS SMALL SCRIPT IS FREE AND MAY BE REDISTRIBUTED | ###
### |-----------------------------------------------------------| ###
#####################################################################
*/
/*
// ################ INSTALLATION #################
1. open the .php file where you want to have the contact form in.
2. paste this whole code in there
3. adapt values in the config section below to your needs.
4. upload the file - that's it!
// ############## END INSTALLATION ###############
*/
// ################### CONFIG ###################
// CSS classes & styles
$classError = "error"; // class for error messages below input fields
$classTxt = "text"; // class for field caption cell
$classField = "field"; // class for input/textarea field cell
$classInputbutton = "inputButton"; // class for submit button
$classInputline = "inputLine"; // class for input lines
$classInputfield = "inputField"; // class for textareas
$styleInputline = "width:355px;"; // add. styles for input lines
$styleInputfield = "width:355px; height:100px;"; // add. styles for textareas
$styleInputbutton = "width:355px;"; // add. styles for submit button
$styleInputradio = "vertical-align:middle;"; // add. styles for radio input fields
$styleInputselect = "width:355px;";
// email
$targetAddress = "*BlahBlah*@yahoo.com";
$emailSubject = "BlahBlah Application";
// misc text
$txtSend = "Send";
$txtMandatory = "mandatory";
$msgDate = "Date";
$dateFormat = "d. M Y, H:i";
$msgIndent = 11;
//thank you messages
$txtThankyou = "<div class='$classTxt'><h2>Thanks for your intrest in the clan!</h2>Your request has been sent and you'll be contacted as soon as possible.</div>";
// form fields
/*
every form field is an array consisting of 6 elements:
1) field caption
2) field name
3) field type: line, field, radio
4) additional info: if field type is
- 'radio' this field contains the radio captions/values like so: {caption1|value1} {caption2|value2} {caption3|value3}...
- 'select' this field contains the radio captions/values like so: {caption1|value1} {caption2|value2} {caption3|value3}...
- 'email' the field value must be a valid emailaddress
5) mandatory ('*') or not ('')
6) error message if empty on submit and set to mandatory previously
*/
$fields[] = array("Name", "name", "line", "", "*", "Please enter a name");
$fields[] = array("Previous league/gaming experience", "Previuse league/gaming experiance", "line", "", "", "");
$fields[] = array("Email", "email", "line", "email", "*", "Please enter a valid email address");
$fields[] = array("Reply by", "replyby", "radio", "{Email|by email}", "*", "Please select a reply mode");
$fields[] = array("Why you would like to join Elite Empire*", "why you want to join", "line", "", "", "");
// ################ END CONFIG ##########################################################
// #######################################################################################
Last edited by 2lazy (14-07-2006 21:15:13)