Jump to content

batterdmooie

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

batterdmooie's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to delete my profile and remove myself from this forum. How can I do this?
  2. Hi, I have been looking on the web about this problem, and it seems to pop up quite often. My problem is this: I have 2 scripts that override each other. I would like to combine them into one script. I have combined scripts previously by adding this code at the bottom: function start() { tablecloth(); scrollovers_Init();; } window.onload = start; What's throwing me is that in script2 there is no "window.onload" only this at the bottom of the script: window.addEvent('domready', Lightbox.init.bind(Lightbox)); Attached are the two scripts, so any help in combining them would be great. Cheers Russ [attachment deleted by admin]
  3. Hi everyone. I am with fasthosts and have created a form. When it is filled out, I receive the information sent. The problem is I get this message in the from field, instead of the users email address: Below is the PHP. Any help would be really appreciated. PHP: <?php // For FastHosts ini_set("sendmail_from", " email@otbdesign.co.uk"); ini_set("SMTP", "smtp.fasthosts.co.uk"); // Form Fields $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "email@otbdesign.co.uk"; $Subject = "OTB Design Contact Form"; $Name = Trim(stripslashes($_POST['Name'])); $Tel = Trim(stripslashes($_POST['Tel'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // validation $validationOK=true; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Tel: "; $Body .= $Tel; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?>
×
×
  • 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.