I have this inquiry form. I wish to capture the fields and email via php script. Can anyone help me in doing that?

It uses html text field, select and textarea form elements.. In select name I wish to capture and email the option selected.

<form action="#" method="get" name="form1">
<label for="name">Name:</label><input name="name" type="text" /><br /><br />
<label for="email">Email:</label><input name="email" type="text" /><br /><br />
<label for="phone">Phone:</label><input name="phone" type="text" /><br /><br />
<label for="cmcenquiryform">Enquiry For:</label>

<select name="cmcenquiryform">
<option>Joining Courses</option>
<option>Corporate Training</option>
</select><br /><br />
<label for="query">Query:</label><textarea name="query" cols="25" rows="5"></textarea><br /><br />

<input name="enquire" type="submit" value="Enquire Now!" class="submit"/><br /><br />


Thanks a million in advance

Best Regards

if you want to send your inquiry form on your mail then use the below script:
if (isset($_POST['enquire'])) //Getting data from form.

$name = $_POST['name'];
$email = $_POST['email'];
$phone_no = $_POST['phone'];
$inqfor = $_POST['cmcenquiryform'];
$query = $_POST['query'];

$to = 'your email goes here'; //Change this with your email address.
$sunject = "Inquery form Submitted by $name"; //your subject goes here.
$message = "<html>
<title>Inquery form Submitted by $name</title>
<p>Here are the Inquiry Received by User!</p>
<td>Phone Number:</td><td>$phone_no</td>
<td>Inquiry for:</td><td>$inqfor</td>
</html>"; //Your Message Goes Here. edit with your requirement.

// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= ...

Have u Upload ur .flv file in particular directory. if not then first upload flv file in directory and then try to access it.
or if u want to change the file permission then open ftp client and right click on file and select Properties. There Change file permission to read, write.

Hay murty14,
Why not you use the code that is posted by atli in [URL="

Suresh_13 commented: this is for multilevel. if we think from position left or right then this code not working +0

witch type of project title you want?

Please Help me...

if your script is work and ur problem is solved then please mark this thread to solve.

Hi all,
I am New in Javascript and Not Having too Much Knowledge of Javascript. I Have a Javascript That Disable Enter Key in Textarea in Whole Form in Page. but I Want to Disable Enter Key only One Textarea.

Below is my Code:
<title>The Title Of Your Page Goes Here!</title>
<script language="javascript" type="text/javascript">
function checkCR(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
document.onkeypress = checkCR;

<p><center><form action="" method="post">
Enter Your Number<br><textarea cols="40" rows="5" name="field1" wrap="physical"></textarea><br>
Enter Your Message<br/><textarea cols="40" rows="5" name="field2" wrap="physical"></textarea>
<input type="submit" value="Send it!"><input type="reset" value="Clear it!" />


The Above Code Work Fine but This Disable The Enter Key in Twice Textarea but I Want to Disable Enter Key Only in First Textarea That is "field1".

Please Help Me.
Thank You.