Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how do i make my contact form secure

Featured Replies

hi again now that i have a working contact form i would like to make it secure,i have spent alnight getting confused by watching tutorials and seeing some scary hacking ways just by viewing the source ,i have been reading something about adding slashes? as any one got any ideas as i dont want my clients reciving spam thanks again

Is your form emailed or does it go into a database? Are you having trouble with bots filling out the form?

 

If it's going into a database you can use:

$var = mysql_real_escape_string($var);

 

You could also use:

$var = trim(stripslashes(strip_tags($var)));

 

If you're emailing the form, there's a tutorial here: http://www.w3schools.com/PHP/php_secure_mail.asp

 

If spam bots are the problem, you could use CAPTCHA.

 

Although I would always reccommend you use the first one.

  • Author

thanks for the replies will check them out,i am having no problems but there is some easy methods of hacking the type of form i have on my site

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.