Form data sending problem

Hi. can you please help me out?
Im working on two forms within Wordpress. One sends information to an email address, the other sends information to the Wordpress Cpanel.
Both work independent from each other and are on different pages within the actual site and both work fine.

The first is a normal Contact form, the second however is a ‘Quote Page’ which, after you have filled in your details (IE car parts) sends them directly to the WP Cpanel, so the admin person can veiw them.

My problem is Ive been asked if there is any way in which a notification email can be sent to the same address as the Contact form whenever a person requets a quote.

Here are the two pieces of code

Contact Code:

<div class=“form”>

							&lt;form enctype="multipart/form-data" action="&lt;?php bloginfo('template_directory'); ?&gt;/assets/php/mail.php" method="post" id="contactform" class="global"&gt;

								&lt;div&gt;
									&lt;label for="full_name"&gt;Name&lt;/label&gt;
									&lt;input type="text" id="name" name="name" maxlength="75" value="" tabindex="1" /&gt;
								&lt;/div&gt;

								&lt;div&gt;
									&lt;label for="email"&gt;Email&lt;/label&gt;
									&lt;input type="text" id="email" name="email" maxlength="75" value="" tabindex="2" /&gt;
								&lt;/div&gt;

								&lt;div&gt;
									&lt;label for=""&gt;&lt;/label&gt;
									&lt;textarea id="message" name="message" rows="8" cols="8" tabindex="3"&gt;&lt;/textarea&gt;
								&lt;/div&gt;

								&lt;div&gt;
									&lt;input type="submit" name="submit" value="Send" id="submit"&gt;
									&lt;input type="hidden" name="c_email" id="c_email" value="&lt;?php echo stripslashes(get_option('cd_email_id')); ?&gt;" /&gt;
								&lt;/div&gt;
								
								&lt;div class="errorbox"&gt;&lt;/div&gt;
								
							&lt;/form&gt;

						
					&lt;/div&gt;

Quote Request Code:

<div class=“form”>
<form enctype=“multipart/form-data” action=“<?php bloginfo(‘template_directory’); ?>/assets/php/mail.php” method=“post” id=“contactform” class=“global”>

							&lt;div class="one_half"&gt;

								&lt;div&gt;
									&lt;label for="full_name"&gt;Full Name&lt;/label&gt;
									&lt;input type="text" name="full_name" value="" id="full_name"&gt;
								&lt;/div&gt;

								&lt;div&gt;
									&lt;label for="phone_number"&gt;Phone Number&lt;/label&gt;
									&lt;input type="text" name="phone_number" value="" id="phone_number"&gt;
								&lt;/div&gt;

								&lt;div&gt;
									&lt;label for="email"&gt;Email&lt;/label&gt;
									&lt;input type="text" name="email" value="" id="email"&gt;
								&lt;/div&gt;
								
							&lt;/div&gt;
							
							&lt;div class="one_half_last"&gt;
								
								&lt;div&gt;
									&lt;label for="models"&gt;Model&lt;/label&gt;
									&lt;?php
										$carsModelPage=get_option('cd_car_listing_page');
										$args = array(
											'depth' =&gt; 1,
											'sort_column'   =&gt; 'menu_order',
											'child_of' =&gt; lp_get_page_id(''.$carsModelPage.''),
										);
										wp_dropdown_pages($args);
									?&gt;
								&lt;/div&gt;
								
								&lt;div&gt;
									&lt;label for="type"&gt;Type&lt;/label&gt;
									&lt;select name="type" id="type"&gt;
										&lt;option value="new"&gt;New&lt;/option&gt;
										&lt;option value="pre-owned"&gt;Pre-owned&lt;/option&gt;					
									&lt;/select&gt;
								&lt;/div&gt;
																	
							&lt;/div&gt;
							

							
							&lt;div&gt;
								&lt;label for=""&gt;&lt;/label&gt;
								&lt;textarea name="message" rows="8" cols="8"&gt;Please include any other information or question here.&lt;/textarea&gt;
							&lt;/div&gt;
							
							&lt;div&gt;
								&lt;input type="submit" name="submit" value="Send" id="submit"&gt;

<input type=“hidden” name=“c_email” id=“c_email” value=“<?php echo stripslashes(get_option(‘cd_email_id’)); ?>” />
</div>

						&lt;/form&gt;
						
					&lt;/div&gt;

I know the issue is surrounding the piece beginning with
$carsModelPage=get_option(‘cd_car_listing_page’);
but Im lost as to what to do next.

I hope Ive explained myself properly.

Any suggestions would be most helpful.
Thanks, Alan
:confused:

the key to what you want will be inside mail.php… without seeing that, I cant offer any specific advice.

Since, you are using Wordpress… Check Secure Contact Form Plugin, it gives a lot of options for what you want + additional facility to send a mail also to the administrator of the website…

hope it solves the problem.

StarLion. I dont have the guys actual hosting details to view the mail.php. Ill get in touch with him. Thanks.

Thanks for that apxred. Ill give it a go.