Jump to content
Stef's Coding Community

Jono

Member
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Jono

  • Rank
    New member

Profile Information

  • Location
    UK
  1. A lot of people don't like Captcha, myself included.
  2. The message still sends with JavaScript turned off (obviously the animations don't work). Insulting message? Why would you think that? It's nice & polite. There's also a 'If you prefer to use your own email client' link at the bottom of the form. So they can use that if they want to open up an email in their email client & send it that way (or have any trouble). I want to use the form because in the past people have tended not to send the info I need. With the contact form's required fields more often than not I get the info I need without having to send an email saying 'Can yo
  3. <?php function getPostVal($paramName) { global $_POST; return (array_key_exists($paramName, $_POST)) ? Trim(stripslashes($_POST[$paramName])) : ''; } $Name = getPostVal('Name'); $Company = getPostVal('Company'); $Web_Site = getPostVal('Web_Site'); $Country = getPostVal('Country'); $Email = getPostVal('Email_Address'); $Subject = getPostVal('Subject'); $Message = getPostVal('Message'); $EmailTo = "user@emailaddress.com"; // validation $missing = ''; $success = false; if (!$Name) $missing = "You forgot to add your Name \n"; if (!$Email) $missing .= "You forgot to add your Email Address \
  4. Thanks jlhaslip. Does the code I added to the PHP file look OK, or could it cause any problems? (I ask because I don't know PHP at all, & don't want to break the functionality of the existing contact forms.)
  5. I saw this tip on another web site to prevent spam on contact forms. In the contact form you add a hidden field And then in the PHP file you add if ( $_POST['to_address'] ) { echo 'Tastes Like spam!'; } else {...send email...} But my PHP file is a little different as also activates some JavaScript on the webpage depending on whether the form is filled out correctly or not (If successful shows a little ?Your email has been sent...? with animation. If the fields aren?t filled out correctly it shows what?s missing). Someone else made the contact form for me as I don?
  6. Sure, I originally made the encoded email address with Enkoder. I didn't realise you could encode any html on the same page
  7. Actually, never-mind. I found the solution on the site where I encoded the original email address. But thanks a lot for trying to help
  8. There are quite a few sites that will let you encode your email address via JavaScript to show it on a web site without bots being able to find it, & therefore spam it (or at least it stems the tide). When you click on them it opens a new email message in the user?s email client with the email address in the ?to? field. What I want to do is display an email address on a web site & encode it in JavaScript (to help prevent spam), but I don?t want it to open a new email when clicked on (I want to activate some different JavaScript instead). Does anyone know if this would be po
×
×
  • Create New...