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j '  'P$a ( `D$Na L?u80e J,K˷NI'0eݷ(NI'؀ 2ipIIKp`:O'`ʤxB8Ѥx Ѥx $ $P6 :vRNb 'p,>NB 'P]-->P T+*^h& p '‰a ‰ (ĵt#u33;Nt̵'ޯ; [3W ~]0KH1q@8]O2]3*̧7# *p>us p _6]/}-4|t'|Smx= DoʾM×M_8!)6lq':l7!|4} '\ne t!=hnLn (~Dn\+‰_4k)0e@OhZ`F `.m1} 'vp{F`ON7Srx 'D˸nV`><;yMx!IS钦OM)Ե٥x 'DSD6bS8!" ODz#R >S8!7ّxEh0m$MIPHi$IvS8IN$I p$O8I,sk&I)$IN$Hi$I^Ah.p$MIN$IR8I·N "IF9Ah0m$MIN$IR8IN$I 3jIU;kO$ɳN$+ q.x* tEXtComment

Viewing File: /home/u403625155/domains/connecttogetherwith.com/public_html/artist-info.php

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include "header.php";

if (isset($_GET['id'])) {
    $artist_id = $_GET['id'];

    $query = "SELECT * FROM celebrities WHERE id = $artist_id";
    $result = mysqli_query($conn, $query);
    if ($result && mysqli_num_rows($result) > 0) {
        $artist = mysqli_fetch_assoc($result);

?>









<style>
    .fan-membership-btn {
        background-color: #4CAF50;
        border: none; 
        color: white;
        padding: 15px 32px; 
        text-align: center; 
        text-decoration: none; 
        display: inline-block; 
        font-size: 16px; 
        margin: 4px 2px; 
        cursor: pointer; 
        border-radius: 8px; 
    }

    .fan-membership-btn:hover {
        background-color: #45a049; 
    }
    
    
/* CSS for the modal form */
.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}

.modal-header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 20px;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}

.close:hover {
    opacity: 1;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

input[type="file"] {
    padding-top: 14px; 
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

</style>



<div class="modal" id="applyModal" tabindex="-1" role="dialog" aria-labelledby="applyModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="applyModalLabel">Apply Now</h5>
                <button type="button" class="close" id="closeModalBtn" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <h3 style="color:#000; font-size:26px;">FAN INTEGRATION</h3>
                <p>Become A True Fan Of Your Favourite Celebrity</p>
                <div style="border: 2px dashed black; padding: 20px; margin-bottom: 20px;">
    <h4 style="margin-bottom: 10px;">Benefits:</h4>
    <ul style="list-style-type: none; padding-left: 0;">
        <li style="margin-bottom: 10px;"><span style="margin-right: 10px;">•</span>Get future access to a celebrity.</li>
        <li style="margin-bottom: 10px;"><span style="margin-right: 10px;">•</span>Enables you to apply for meet and greet.</li>
        <li style="margin-bottom: 10px;"><span style="margin-right: 10px;">•</span>Get other possible contact with the celebrity.</li>
        <li style="margin-bottom: 10px;"><span style="margin-right: 10px;">•</span>Help us know you better for the security of the celebrity.</li>
    </ul>
</div>
                <form method="POST" class="custom-form" enctype="multipart/form-data">
                    <div class="form-group">
                        <label for="firstName">First Name</label>
                        <input type="text" class="form-control" name="firstname" placeholder="Enter your first name" required>
                    </div>
                    <div class="form-group">
                        <label for="lastName">Last Name</label>
                        <input type="text" class="form-control" name="lastname" placeholder="Enter your last name" required>
                    </div>
                    <div class="form-group">
                        <label for="phone">Phone Number</label>
                        <input type="tel" class="form-control" name="phonenumber" placeholder="Enter your phone number" required>
                    </div>
                    <div class="form-group">
                        <label for="email">Email Address</label>
                        <input type="email" class="form-control" name="email" placeholder="Enter your email address" required>
                    </div>
                    <div class="form-group">
                        <label for="address">Address</label>
                        <input type="text" class="form-control" name="address" placeholder="Enter your address">
                    </div>
                    <div class="form-group">
                        <label for="city">City</label>
                        <input type="text" class="form-control" name="city" placeholder="Enter your city">
                    </div>
                    <div class="form-group">
                        <label for="state">State</label>
                        <input type="text" class="form-control" name="state" placeholder="Enter your state">
                    </div>
                    <div class="form-group">
                        <label for="zip">Zip Code</label>
                        <input type="text" class="form-control" name="zipcode" placeholder="Enter your zip code">
                    </div>
                    <div class="form-group">
                        <label for="country">Country</label>
                        <input type="text" class="form-control" name="country" placeholder="Enter your country">
                    </div>
                    <div class="form-group">
                        <label for="image">Upload Image</label>
                        <input type="file" class="form-control-file" name="image" accept="image/*">
                    </div>
                    
                    <p>Membership Fee: $<?php echo $artist['fee']; ?> </p>
                    <button type="submit" style="background:#AB8454; color:#fff;" class="btn btn-primary" name="submitFanMembership">Submit</button>
                </form>
            </div>
        </div>
    </div>
</div>









        <section class="page-title" style="background-image: url(11.jpg);">
            <div class="auto-container">
                <div class="title-outer text-center">
                    <h1 class="title">Celebrity Info</h1>
                    <ul class="page-breadcrumb">
                        <li><a href="index.php">Home</a></li>
                        <li><a href="artists">Artists</a></li>
                        <li><?php echo $artist['name']; ?></li>
                    </ul>
                </div>
            </div>
        </section>

        <section class="team-details">
            <div class="container pb-100">
                <div class="team-details__top pb-70">
                    <div class="row">
                        <div class="col-xl-6 col-lg-6">
                            <div class="team-details__top-left">
                                <div class="team-details__top-img">
                                    <img src="celebs/<?php echo $artist['image_url']; ?>" alt="<?php echo $artist['name']; ?>">
                                    <div class="team-details__big-text"></div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xl-6 col-lg-6">
                            <div class="team-details__top-right">
                                <div class="team-details__top-content">
                                    <h3 class="team-details__top-name"><u><?php echo $artist['name']; ?></u></h3>
                                    <p class="team-details__top-title" style="color:#fff;"><?php echo $artist['description']; ?></p>
                        <p style="text-align: center; color: #fff;">IF WE DON'T CONNECT A CELEBRITY TO YOU, OUR SERVICE IS FREE</p>

                                    
                                    
                                        <h4 class="section-title">Information</h4>
                        
                        <p class="team-details__top-title" style="color:#fff;">Start by filling out our no-obligation application form below to check terms and availability for <?php echo $artist['name']; ?> or any celebrity of your choosing.</p>
                        
                        
                         
                    <h4 class="section-title">Support</h4>
                        
                        <p class="team-details__top-title" style="color:#fff;">Want to talk about your meetup now? send your message to ( support@connecttogetherwith.com) and one of our standby agents will be happy to help you immediately.</p>

                                  <button class="fan-membership-btn" id="fanMembershipBtn"  style="background:#AB8454; color:#fff;">FAN INTEGRATION</button>

                                </div>
                            </div>
                        </div>
                        
                        
                        <br>
                        <br>
                        
                        
                
                        
                        
                        
                    </div>
                </div>
            </div>
        </section>


        <div class="p-4 p-lg-5 bg-dark">
    <h4 class="mt-0 text-white">Apply now to connect with — <?php echo $artist['name']; ?></h4>
    <form method="POST" class="custom-form" enctype="multipart/form-data">
    <div class="form-row">
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="firstName">First Name</label>
            <input type="text" class="form-control" name="firstname" placeholder="First Name" required>
        </div>
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="lastName">Last Name</label>
            <input type="text" class="form-control" name="lastname" placeholder="Last Name" required>
        </div>
    </div>
    <br> 
    <div class="form-row">
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="phone">Phone/Mobile</label>
            <input type="tel" class="form-control" id="phone" name="phonenumber" placeholder="Mobile Number" required>
        </div>
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="email">Email</label>
            <input type="email" class="form-control" id="email" name="email" placeholder="Email Address" required>
        </div>
    </div>

    <br>
    <div class="form-row">
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">City</label>
            <input type="text" class="form-control" id="city" name="city" placeholder="City" required>
        </div>
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="state">State</label>
            <input type="text" class="form-control" id="state" name="state" placeholder="State" required>
        </div>
    </div>
    <br> 
    <div class="form-row">
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="zip">Zip Code</label>
            <input type="text" class="form-control" id="zip" name="zipcode" placeholder="Zip" required>
        </div>
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Country</label>
            <input type="text" class="form-control" id="country" name="country" placeholder="Country" required>
        </div>
    </div>
    <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Date of Birth</label>
            <input type="date" class="form-control" id="dob" name="dob" placeholder="DOB" required>
        </div>
        
         <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Gender</label>
            <select name="gender" class="form-select">
                <option value="male">Male</option>
                <option value="female">Female</option>
                <option value="non-binary">Non Binary</option>
                <option value="rather-not-say">Rather Not Say</option>
                
            </select>
        </div>
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Reason for Booking</label>
            <input type="text" class="form-control" id="reason" name="reason" placeholder="Reason for Booking" required>
        </div>
        
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Duration</label>
            <input type="text" class="form-control" id="duration" name="duration" placeholder="Duration (days)" required>
        </div>
        
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Occupation</label>
            <input type="text" class="form-control" id="occupation" name="occupation" placeholder="occupation" required>
        </div>
        
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Home Address</label>
            <input type="text" class="form-control" id="address" name="address" placeholder="Home Address" required>
        </div>
        
        <div class="form-group col-md-6">
            <label style="color:#fff;" for="city">Marital Status</label>
            <select name="marital" class="form-select">
                <option value="single">Single</option>
                <option value="married">Married</option>
                <option value="divorced">Divorced</option>
                <option value="widowed">Widowed</option>
                
            </select>
        </div>
    <br> 
    <div class="form-group">
        <label style="color:#fff;" for="image">Upload Your Passport Below (jpg,png,gif of Max. Size: 3MB) </label>
        <input type="file" name="fileToUpload" id="fileToUpload" class="form-control-file" accept="image/*" required>
    </div>
    
    <div class="form-group">
        <label style="color:#fff;" for="image">I hereby accept the terms and conditions and ready to comply and follow all instructions as required by management. </label>
        <input type="checkbox" name="accept"   class="form-check"  required>
        Check this field to accept.
    </div>
    <!--
    <br>
    <p><strong>MEMBERSHIP FEE: $<?php echo $artist['fee']; ?></strong></p> 
    <br> -->
    <div class="mb-0">
    <button type="submit" name="submitCelebrityConnection" class="theme-btn btn-style-one" style="background-color: white; color: black; font-size:16px;"><span class="btn-title">Submit</span></button>
</div>

</form>


</div>



        <?php include "footer.php"; ?>
        
<script>
    document.getElementById("fanMembershipBtn").addEventListener("click", function() {
        document.getElementById("applyModal").style.display = "block";
    });

    document.getElementById("closeModalBtn").addEventListener("click", function() {
        document.getElementById("applyModal").style.display = "none";
    });
</script>


<?php
      } else {
        echo "<script>";
        echo "<script>
    swal('Error','Artist Not Found','error')
    .then(()=>{
        window.location.href = '404';
    })
    ";
    }
} else {
    echo "<script>
    swal('Error','No artist ID provided','error')
    .then(()=>{
        window.location.href = '404';
    })
    ";
    
}
?>




<?php
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submitFanMembership'])) {
    echo "working";
    $firstname = $_POST['firstname'];
    $lastname = $_POST['lastname'];
    $phonenumber = $_POST['phonenumber'];
    $email = $_POST['email'];
    $city = $_POST['city'];
    $state = $_POST['state'];
    $zipcode = $_POST['zipcode'];
    $country = $_POST['country'];

    $subject = "New FAN INTEGRATION Application";
    $message = "
         
        
            <h2>FAN INTEGRATION APPLICATION DETAILS:</h2>
            <p><strong>First Name:</strong> $firstname</p>
            <p><strong>Last Name:</strong> $lastname</p>
            <p><strong>Phone Number:</strong> $phonenumber</p>
            <p><strong>Email:</strong> $email</p>
            <p><strong>City:</strong> $city</p>
            <p><strong>State:</strong> $state</p>
            <p><strong>Zip Code:</strong> $zipcode</p>
            <p><strong>Country:</strong> $country</p>
        
       
    ";

    if (sendmail("support@connecttogetherwith.com", $subject, $message)) {
        echo "<script>
                swal('Success', 'You have successfully submitted your FAN INTEGRATION application', 'success')
                    .then(() => {
                        location.replace('index');
                    });
              </script>";
    } else {
        echo "<script>
                swal('Success', 'You have successfully submitted your FAN INTEGRATION application', 'success')
                    .then(() => {
                        location.replace('index');
                    });
              </script>";
    }
}

if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submitCelebrityConnection'])) {
    $firstname = $_POST['firstname'];
    $lastname = $_POST['lastname'];
    $phonenumber = $_POST['phonenumber'];
    $email = $_POST['email'];
    $city = $_POST['city'];
    $state = $_POST['state'];
    $zipcode = $_POST['zipcode'];
    $country = $_POST['country'];
    $image_name = $_FILES['fileToUpload']['name'];
    $marital = $_POST['marital'];
    $dob = $_POST['dob'];
    $address = $_POST['address'];
    $occupation = $_POST['occupation'];
    $duration = $_POST['duration'];
    $reason = $_POST['reason'];
    $gender = $_POST['gender'];

    $subject = "New Celebrity Connection Application";
    $message = "
        
            <p><strong>First Name:</strong> $firstname</p>
            <p><strong>Last Name:</strong> $lastname</p>
            <p><strong>Phone Number:</strong> $phonenumber</p>
            <p><strong>Email:</strong> $email</p>
            <p><strong>City:</strong> $city</p>
            <p><strong>State:</strong> $state</p>
            <p><strong>Zip Code:</strong> $zipcode</p>
            <p><strong>Country:</strong> $country</p>
            <p><strong>Address:</strong> $address</p>
            <p><strong>Duration:</strong> $duration</p>
            <p><strong>Reason:</strong> $reason</p>
            <p><strong>DOB:</strong> $dob</p>
            <p><strong>Marital:</strong> $marital</p>
            <p><strong>Occupation:</strong> $occupation</p>
            <p><strong>Gender:</strong> $gender</p>
      
    ";

    if (sendmail("support@connecttogetherwith.com", $subject, $message)) {
        echo "<script>
                swal('Success', 'You have successfully submitted your celebrity connection application', 'success')
                    .then(() => {
                        location.replace('index');
                    });
              </script>";
    } else {
        echo "<script>
                swal('Success', 'You have successfully submitted your celebrity connection application', 'success')
                    .then(() => {
                        location.replace('index');
                    });
              </script>";
    }
}
?>



Back to Directory=ceiIENDB`