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.

Search & contact Script needed

Featured Replies

Hey, I'm re-designing my personal website and I need a very simple search and contact script. It should be able to send data to my e-mail address at sazzad.iamshipon1988@gmail.com. The search result should load on a different page

 

 

Thanks

The search depends on how you structure your site (is it database driven, what language do you use...)

For the contact, the simplest way I suppose is the brilliant formail this requires CGI though, If you don't have access to CGI, here's the equivalent in php

 

Voila! Hope this helps you ;)

the simplest way I suppose is the brilliant formail this requires CGI though...[/url]

 

:ph34r: *slow motion* Oh nooooooooo! Matt's script is very old and spammers love it!

 

The 'new' version of it is by The NMS Project and they have a couple of different versions. This is the script I use - it's got built in spammy protection!

 

As for site search, what about good ol' Google?

 

:)

  • Author

Thank you both.

BabyBen, the link you gave me seems to be the kind I want.

 

For the search engine, I want to use it on a html page so It cannot be in php. If there is none found, then I will be forced to use php.

Thank you both.

BabyBen, the link you gave me seems to be the kind I want.

 

For the search engine, I want to use it on a html page so It cannot be in php. If there is none found, then I will be forced to use php.

 

Why not just use PHP anyway? :mellow:

:ph34r: *slow motion* Oh nooooooooo! Matt's script is very old and spammers love it!

 

 

The latest of matt's script is good. A lot of people still use it and if set up well is pretty "spam proof"

 

FormMail is quite possibly the most used CGI program on the internet, having been downloaded over 2,000,000 times since 1997

Taken from Matt's Script Archive.

The latest of matt's script is good. A lot of people still use it and if set up well is pretty "spam proof"

Taken from Matt's Script Archive.

 

The code is old and buggy, and not as secure as the NMS one. I'd much rather use code from a group of experience coders that is more upto date, than code that was written by someone learning and not updated much. But if you prefer matt's version (the nms is a drop-in replacement for it however!) then cool, personally I wouldn't!!

 

How many web users will either setup matt's version well, or indeed even have a clue to know how to do it well?

 

AFAIK 1&1 will not let you use Matt's scripts at all and go as far as removing them and warning customers, but they recommend the NMS one.

 

:)

well, that's me told then! (Thank you E, lol).

 

As you say:

How many web users will either setup matt's version well, or indeed even have a clue to know how to do it well?

I'm alright at doing it personally and spam count so far is 0 :)

 

I did look at the one you recommended and yes, It looks good and I will give it a go!

 

Can you just tell me what you mean by buggy tho? What is wrong with it your eyes?

well, that's me told then! (Thank you E, lol).

 

:friends: Oh come here and gimme a hug :air_kiss::give_rose::D

 

Can you just tell me what you mean by buggy tho? What is wrong with it your eyes?

 

From Matt's site:

 

While the free code found at my web site has not evolved much in recent years, the general programming practices and standards of CGI programs have. nms is an attempt by very active programmers in the Perl community to bring the quality of code for these types of programs up to date and eliminate some of the bad programming practices and bugs found in the existing Matt's Script Archive code.

 

I would highly recommend downloading the nms versions if you wish to learn CGI programming. The code you find at Matt's Script Archive is not representative of how even I would code these days. My interests and activies have moved on, however, and I just have not found the time to update all of my scripts. One of the major reasons for this is that they work for many people. For this reason, I will continue to provide them to the public, but am also pleased to make you aware of well-coded alternatives.

  • Author

Well, hmm...I guess I will use php then. CGI makes the layout look a bit odd, not sure why. Plus I have more experience with php. What I would normally use for the php script is this:

<?php
  if ($_POST['submit']) {
  $header = 'From: '. $_POST['from'];
  mail($_POST['to'], $_POST['subject'], $_POST['body'], $header);
  echo 'The e-mail has been sent.';
  }
?>

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<FORM action="process.php" method="POST" >
 <div>
  To: <input type="text" name="to" value="sazzad@sazzadhossain.info"><br/>
  Subject: <input type="text" name="subject" value="" /><br/>
  Body: <textarea name="body"></textarea><br/>
  From: <input type="text" name="from" value=""><br/>
  Image Validation: <br/>
  <table border="0"><tr><td v-align="center"><img src="image.php" border="0"/>   <input type="text" name="image"><br /></td></tr></table><br/>
  <input type="submit" name="submit" value="Send Email">
 </div>
</form>

 

However, as you can see its not at all secure. I tried adding the image validator, but I can't seem to get it to work.

Here's the demo: http://www.sazzadhossain.info/contact/index.php

You will get bombarded with spam with a script like this...

re you images verification (captcha) I can have a look for you. Post your (full) code here or PM if you don't want to expose it

 

Olivier

  • Author

Well I have a very complicated captcha script, I'm looking for a very simple one but cant seem to find one.

The simplest one is the one you will put together... It's all good getting script of the net when you end up in this situation (you can't customise it) I think it's time to learn and a=come up with your own solution. It's the best way to get exactly what you need...

 

My opinion, no rules there...

 

Oli

  • Jo 90 locked this topic
Guest
This topic is now closed to further replies.

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.