Jump to content
Manx Forums, Live Chat, Blogs & Classifieds for the Isle of Man

bollocks

Members
  • Content Count

    109
  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower

About bollocks

  • Rank
    MF Senior Member
  • Birthday 01/05/1990

Profile Information

  • Gender
    Not Telling
  • Interests
    Plenty.

Recent Profile Visitors

503 profile views
  1. Interesting... I'm working on this project and haven't heard this! Can you reveal where this came from? Tender packs were meant to go out months ago.
  2. Asus Rampage II Extreme mobo Intel i7 920 with D0 stepping Noctua NH-U12P cooler (with fans) G.Skill 6gb RAM XFX 5870 GPU Cooler Master 900W UCP PSU No screws/cables included apart from screws that came with mount for cooler CPU is sat in mobo (I don't have anti-static wrap suitable for it's storage) and needs old thermal paste removing Each part has been air cleaned (as best as I can do) £150 for all of it Call Steve on 470055
  3. Less than a year old. Good as new. RRP £500. Selling due to purchase of newer/larger model. No original box but comes with AC lead and remote. £350 ONO. Collection only. Contact 470055.
  4. Douglas Head Apartments here. I've noticed a gradual decline in speed over the last couple of weeks, down from 5mbps to ~2.5mbps. Nightmare. Any chance of installing a virtual exchange up here MT?!
  5. This is what I've come up with: Feedback would be massively appreciated. Cheers!
  6. You were right, php wasn't enabled... DOY. All sorted now... cheers!
  7. No error message received. See form here: http://mcliom.com/contact.html I don't understand what you mean by multipart encoded i'm afraid.
  8. I assume form is looking in the right place; form is located at http://mcliom.com/contact.html and mail.php is at http://mcliom.com/php/mail.php
  9. It wouldn't be - that's what this form is trying to stop I'm presuming. Pretty much
  10. I have a email form on my website which calls mail.php. I've tested it and it doesn't work. Any ideas where I'm going wrong? NB. My site is hosted by manx.net and my package is php enabled. mail.php <?php // CONFIGURATION -------------------------------------------------------------- // This is the email where the contact mails will be sent to. $config['recipient'] = '*****@mcliom.com'; // This is the subject line for contact emails. // The variable %name% will be replaced with the name of the sender. $config['subject'] = 'Contact message from %name%'; // These are the messages displayed in case of form errors. $config['errors'] = array ( 'no_name' => 'Please enter your name', 'no_email' => 'Your Email adresse is required.', 'invalid_email' => 'You entered an invalid email address.', 'no_message' => 'Please, include your message.', ); // END OF CONFIGURATION ------------------------------------------------------- // Ignore non-POST requests if ( ! $_POST) exit('Nothing to see here. Please go back to the site.'); // Was this an AJAX request or not? $ajax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); // Set the correct HTTP headers header('Content-Type: text/'.($ajax ? 'plain' : 'html').'; charset=utf-8'); // Extract and trim contactform values $name = isset($_POST['name']) ? trim($_POST['name']) : ''; $email = isset($_POST['email']) ? trim($_POST['email']) : ''; $message = isset($_POST['message']) ? trim($_POST['message']) : ''; // Take care of magic quotes if needed (you really should have them disabled) set_magic_quotes_runtime(0); if (get_magic_quotes_gpc()) { $name = stripslashes($name); $email = stripslashes($email); $message = stripslashes($message); } // Initialize the errors array which will also be sent back as a JSON object $errors = NULL; // Validate name if ($name == '' || strpos($name, "\r") || strpos($name, "\n")) { $errors['name'] = $config['errors']['no_name']; } // Validate email if ($email == '') { $errors['email'] = $config['errors']['no_email']; } elseif ( ! preg_match('/^[-_a-z0-9\'+*$^&%=~!?{}]++(?:\.[-_a-z0-9\'+*$^&%=~!?{}]+)*+@(??![-.])[-a-z0-9.]+(?<![-.])\.[a-z]{2,6}|\d{1,3}(?:\.\d{1,3}){3})(?::\d++)?$/iD', $email)) { $errors['email'] = $config['errors']['invalid_email']; } // Validate message if ($message == '') { $errors['message'] = $config['errors']['no_message']; } // Validation succeeded if (empty($errors)) { // Prepare subject line $subject = str_replace('%name%', $name, $config['subject']); // Additional mail headers $headers = 'Content-Type: text/plain; charset=utf-8'."\r\n"; $headers .= 'From: '.$email; // Send the mail if ( ! mail($config['recipient'], $subject, $message, $headers)) { $errors['server'] = 'There seems to be a technical problem with our server. We are sorry. '. 'Could you mail your message directly at '.$config['recipient'].'? Thank you.'; } } if ($ajax) { // Output the possible errors as a JSON object echo json_encode($errors); } else { // Show a simple HTML feedback message in case of non-javascript support if (empty($errors)) { echo '<h1>Thank you</h1>'; echo '<p>Your message has been sent.</p>'; } else { echo '<h1>Oops!</h1>'; echo '<p>Please go back and fix the following errors:</p>'; echo '<ul><li>'; echo implode('</li><li>', $errors); echo '</li></ul>'; } } form html <form id="contactform" action="php/mail.php" method="post" enctype="multipart/form-data" class="global" > <ul> <li> <label for="name">Your Name :</label> <input id="name" name="name" type="text" /> </li> <li> <label for="email">Your Email :</label> <input id="email" name="email" type="text" /> </li> <li> <label for="message">Message :</label> <textarea id="message" name="message" rows="7" cols="60"></textarea> </li> <li> <input type="submit" class="submit" value="Send Now" /> </li> </ul> </form>
  11. Carlsberg dont do threads. But if they did, they'd probably be the best threads in the world.
  12. Fuck you I will do what you tell me
  13. Appreciate the feedback but I don't own an amp? Don't you need an amp to get feedback? Oh I get it now.
×
×
  • Create New...