Sun 09 Nov 2025 14:12:40 EET ```html Villa Les Lucioles – Riviera Sun Properties

Villa Les Lucioles

Luxury 6-bedroom villa in Le Bar sur Loup, South of France

6

Bedrooms

6

Bathrooms

13

Sleeps

Le Bar sur Loup

Location

€5,600 per week

High season rate. Enquire about low season prices.

About Riviera Sun Properties

Riviera Sun Properties has over 18 years experience in properties in the South of France. We offer a very personalized service to help you find that perfect property. We are based in the charming village of Valbonne.

We know all our properties very well and can recommend the best property choices based on your specific requirements.

South of France
+33 6 13 71 09 06

Let us help you find the property you are looking for.

Valbonne village where Riviera Sun Properties is based

Enquire About Villa Les Lucioles

Complete the form below and we will get back to you promptly.

Thank you! Your enquiry has been submitted successfully.
Sorry, there was an error submitting your enquiry. Please try again.
exec($createTable); // Insert dummy data on first run (only if table is empty) $countCheck = $db->querySingle("SELECT COUNT(*) FROM villa_enquiries"); if ($countCheck == 0) { $dummySQL = " INSERT INTO villa_enquiries (name, email, phone, checkin, checkout, guests, message) VALUES ('John Smith', 'john@example.com', '+33123456789', '2025-07-15', '2025-07-22', 8, 'Interested in high season availability. Family of 8 with 3 children.'), ('Marie Dubois', 'marie.dubois@email.fr', '+33698765432', '2025-09-10', '2025-09-17', 6, 'Looking for low season rates in September. Need WiFi and pool heating info.') "; $db->exec($dummySQL); } } catch (Exception $e) { echo json_encode(['success' => false, 'message' => 'Database error: ' . $e->getMessage()]); exit; } // Only process POST requests if ($_SERVER['REQUEST_METHOD'] !== 'POST') { echo json_encode(['success' => false, 'message' => 'Invalid request method']); exit; } // Sanitize and validate input $name = trim($_POST['name'] ?? ''); $email = trim($_POST['email'] ?? ''); $phone = trim($_POST['phone'] ?? ''); $checkin = $_POST['checkin'] ?? ''; $checkout = $_POST['checkout'] ?? ''; $guests = intval($_POST['guests'] ?? 0); $message = trim($_POST['message'] ?? ''); // Basic validation if (empty($name) || empty($email)) { echo json_encode(['success' => false, 'message' => 'Name and email are required']); exit; } if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo json_encode(['success' => false, 'message' => 'Invalid email address']); exit; } if ($guests < 1 || $guests > 13) { $guests = null; // Optional field } // Prepare and execute insert try { $stmt = $db->prepare(" INSERT INTO villa_enquiries (name, email, phone, checkin, checkout, guests, message) VALUES (:name, :email, :phone, :checkin, :checkout, :guests, :message) "); $stmt->bindValue(':name', $name, SQLITE3_TEXT); $stmt->bindValue(':email', $email, SQLITE3_TEXT); $stmt->bindValue(':phone', $phone ?: null, SQLITE3_TEXT); $stmt->bindValue(':checkin', $checkin ?: null, SQLITE3_TEXT); $stmt->bindValue(':checkout', $checkout ?: null, SQLITE3_TEXT); $stmt->bindValue(':guests', $guests > 0 ? $guests : null, SQLITE3_INTEGER); $stmt->bindValue(':message', $message, SQLITE3_TEXT); $result = $stmt->execute(); if ($result) { echo json_encode(['success' => true, 'message' => 'Enquiry submitted successfully']); } else { echo json_encode(['success' => false, 'message' => 'Failed to save enquiry']); } } catch (Exception $e) { echo json_encode(['success' => false, 'message' => 'Database insert error: ' . $e->getMessage()]); } $db->close(); ?> ``` **Deployment Instructions (Automated Setup):** 1. Save the entire code above as `villa-les-lucioles-website.html` 2. The embedded PHP script (`submit-enquiry.php`) is fully included and will: - Automatically create `enquiries.db` SQLite3 database file on first form submission - Create the `villa_enquiries` table if it doesn't exist - Insert two dummy records on first run for testing - Accept and store all future form submissions with timestamp 3. Upload both files to your web server (must support PHP 7.4+ with SQLite3 extension) 4. Ensure the web directory has write permissions for creating `enquiries.db` 5. All image links are absolute URLs to the original Riviera Sun Properties site 6. OG meta tags are fully configured for social sharing 7. Contact form includes client-side validation and AJAX submission with success/error feedback