I can't get get autocomplete to pass its result in my form.

I can't get get autocomplete to pass its result in my form.

Yesterday I failed to get autocomplete to work with my OnebyOne slideshow. I gave up with that. Today as a work around I thought I would make a new enquiry form with the autocomplete part in it, and then place it in an iFrame.

However...  I can't get get autocomplete to pass its result in my form. All the other bits are passed fine. Can someone explain how I should phrase the html part. extract below full code at the bottom of the page. or do I need an additional script?

regards Nick

<input type="text" name="house_name_number_street" id="house_name_number_street"> Village, Town, Postcode (type the first few letters of your town or vallage to find out if we service the rural area you live in.) <input id="autocomplete" title="type &quot;a&quot;"> Telephone number <input type="text" name="telephone" id="telephone">


www.nicallen.com/form

www.nicallen.com/form/mailer.php

THE PHP

<?php

/**
 * Send contact form message
 */

#YOUR E-MAIL
define('TO', 'nick@nicallen.com');
##E-MAIL SUBJECT
define('SUBJECT', 'Contact Form!');


$message = 'Message from: ' . $_POST['name'] . ' <'.$_POST['email'].'>' . "\n
Title: " . $_POST['title'] . "\n
Full name: " . $_POST['name'] . "\n
House name or number and street: " . $_POST['house_name_number_street'] . "\n
Village, Town, Postcode: " . $_POST['autocomplete'] . "\n
Telephone: " . $_POST['telephone'] . "\n
Time_to_telephone: " . $_POST['time_to_telephone'] . "\n
Email: " . $_POST['email'] . "\n
Domestic: " . $_POST['domestic'] . "\n
Commercial: " . $_POST['commercial'] . "\n
Litres_used_per_annum: " . $_POST['litres_used_per_annum'] . "\n
Commercial: " . $_POST['commercial'] . "\n
Vessel_serial: " . $_POST['vessel_serial'] . "\n
Vessel_location: " . $_POST['vessel_location'] . "\n
Comments: " . $_POST['comments'] . "\n
Current_supplier: " . $_POST['current_supplier'] . "\n
Contract start date: " . $_POST['datepicker1'] . "\n
Contract end date: " . $_POST['datepicker2'];


if (mail(TO, SUBJECT, $message)){
    echo 'ok';
}else{
    echo 'Error occurred while sending email';
}

/**
* end of file
*/