Jump to content

obay

Members
  • Posts

    110
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

obay's Achievements

Member

Member (2/5)

0

Reputation

  1. the email sent is blank because here: $mail = $smtp->send($to, $headers, $body); you didn't initialize the value of $body, so it sends a blank email
  2. you have two form elements named "message".. one is an <input>, the other one a <textarea>. there should only be one. also, you just gave everyone your password lol
  3. You probably have an infinite loop somewhere. Try removing (commenting out) your loops, and see if it removes the problem.
  4. Is there a software like XAMPP but has PostgreSQL instead of MySQL in it? Thanks
  5. In case somebody will have this same question, here's what I'm downloading: 1. Microsoft ExpressionWeb SuperPreview 2. IECollection 3. IETester 4. All versions of Firefox Portable 5. All versions of Opera Portable 6. Google Chrome Portable 7. (couldn't find stable versions of Safari Portable)
  6. just "Find All" instances of that text in all your pages, then remove them. upload your pages. then change your password
  7. Forgive me if this is the wrong forum, but: Is there any free software out there that enables us to browse our websites using different browser versions? browsershots is good, but it only provides screenshots. spoon.net/browsers doesn't run on my machine. other tools out there are not free. Any ideas?
  8. Solved this by changing the charset to ISO-8859-1
  9. put the $_POST[] value as the value in the text boxes for example <input type="text" name="firstname" value="<?php echo $_POST['firstname']; ?>" /> <input type="text" name="lastname" value="<?php echo $_POST['lastname']; ?>" /> etc...
  10. i set the charset properly <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. many ways to do this. this is how i would do it: <?php $valid_email = false; $valid_first = false; $valid_last = false; $valid_org = false; $errors = array(); if(isset($_POST['submitform']) && $_POST['submitform']==1) { if(isset($_POST['email']) && eregi("^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$", $_POST['email'])) { $valid_email = true; } else { array_push($errors, "You must submit a valid E-Mail."); } if ($_POST['firstname'])!="") { $valid_first = true; } else { array_push($errors, "You must enter your first name."); } if ($_POST['lastname'])!="") { $valid_last = true; } else { array_push($errors, "You must enter your last name."); } if ($_POST['organization'])!="") { $valid_org = true; } else { array_push($errors, "You must enter your organization."); } if ($valid_email && $valid_first && $valid_last && $valid_org) { $to = "info@gttgrp.com"; $subject = "GTT FORM SUBMISSION"; $headers = "From: ".$_POST['email']; $date = date("r"); $message = "Form submission sent from 'Subscribe' at ".$date."\n\n"; $message .= "Salutation : ".$_POST['salutation']."\n"; $message .= "First Name : ".$_POST['firstname']."\n"; $message .= "Last Name : ".$_POST['lastname']."\n"; $message .= "Company : ".$_POST['organization']."\n"; $message .= "Title : ".$_POST['title']."\n\n"; $message .= "Country : ".$_POST['country']."\n\n"; $message .= "Phone : ".$_POST['phone']."\n"; $message .= "Email : ".$_POST['email']."\n\n"; if(isset($_POST['addtonetwork']) && $_POST['addtonetwork']=='yes') { $message .= "YES - Add to network.\n\n"; } else { $message .= "NO - Do not add to network.\n\n"; } if(mail($to, $subject, $message, $headers)) { include("includes/thankyou.php"); } else { global $error; $error = "Mail could not be sent!"; include("includes/form_subscribe.php"); } } else { global $error; $error = implode("<br />", $errors); include("includes/form_subscribe.php"); } } else { include("includes/form_subscribe.php"); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.