Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 05:47:40 PM

Pages: 1 [2]   Go Down
  Print  
Author Topic: how to set up email form  (Read 5249 times)
pentimento
Intergalactic Cowboy
*****
Offline Offline

Posts: 69



WWW
« Reply #15 on: February 27, 2006, 11:49:44 PM »

Thank you! Smile
Got it working - it was the permissions problem. I had changed them on the other form php but not when I did this pl form.

Can you tell me how to clean up the email it sends so it doesn't look like this? I would like to clean it up a bit.

firstlastname: w
repeatemail:
phone:
Submit: Submit

I was able to fix that in the php script but can't find where to do it here. Also, where do I link to my error and thankyou pages?

Thank you SO much!
Logged

leighsww
* The Tough Love Cuddly One *
Berserker Poster
*****
Offline Offline

Posts: 13870


WWW
« Reply #16 on: February 28, 2006, 11:38:13 AM »

In the following tag in your html form:

Code:
<input type="submit" name="Submit" value="Submit" />

Remove the "name" part to look like this instead:

Code:
<input type="submit" value="Submit" />

And that will get rid of the "Submit: Submit" part of the submitted email.

Also, if you want to remove the following headers:

Code:
firstlastname:
repeatemail:
phone:

And just have the data that the Submitter enters show up, example:

Code:
John Doe
jdoe@email.com
(800)123-4567

then follow the instructions that this following post by dugawug gives:

http://www.lunarforums.com/forum/index.php?topic=31037.msg237303#msg237303

One last thing ...

Since you are asking for first and last name all on one field (NOT separately), you might want to use "realname" instead of "firstlastname" for that field tag, because the NMS FormMail script uses "realname" in the script itself which then puts that data in the "From:" section of the submitted email instead of only the email address.

I, myself, find this beneficial to see the actual name of the Submitter rather than just their email addy listed in my inbox for easier/better referencing purposes.

What "error" pages are you referring to? For what errors?

The "Thank You" page is in the "redirect" hidden tag. If your customized
"Thank You" html page is not redirecting, then you probably have your path to the page incorrect. Double-check that.
« Last Edit: February 28, 2006, 11:48:19 AM by leighsww » Logged
pentimento
Intergalactic Cowboy
*****
Offline Offline

Posts: 69



WWW
« Reply #17 on: February 28, 2006, 02:32:23 PM »

Sweet! I got rid of the unwanted stuff on the email, but still can't seem to get redirected to the correct page. Is the redirect to be corrected in the pl or the html?

I want to use my own error and success pages.  Still getting error and thank you pages from FormMail © 2001 London Perl Mongers.

I like what "real name" does but think it looks weird in the actual form. Can that be hidden in some way?


Logged

leighsww
* The Tough Love Cuddly One *
Berserker Poster
*****
Offline Offline

Posts: 13870


WWW
« Reply #18 on: February 28, 2006, 03:14:00 PM »

If you are using an absolute URL, then this tag you have:

Quote
<input type="hidden" name="redirect" value="../http://www.blondiesdenver.com/success.htm">

Should be this:

Quote
<input type="hidden" name="redirect" value="http://www.blondiesdenver.com/success.htm">

(Remove the "../" in front of the "http")

Quote from: pentimento
I like what "real name" does but think it looks weird in the actual form. Can that be hidden in some way?

You only change the "name" part of the "input" tag to "realname" but leave the "Name" text (inside the div) as is. So, your code outside the <input> tag stays the same (as shown in Purple) but only change the name="firstlastname" part to name="realname" (shown in Red), like this:

Quote
<td width="124"><div align="left"><span class="style1">Name </span></div></td>
<td width="210"><input name="realname" type="text" id="firstlastname" size="24" />

"realname" will not show up on the html page where the Submitter is filling out. Is this what you mean?
« Last Edit: February 28, 2006, 03:16:46 PM by leighsww » Logged
pentimento
Intergalactic Cowboy
*****
Offline Offline

Posts: 69



WWW
« Reply #19 on: February 28, 2006, 03:22:10 PM »

 :yey:You are incredible! Everything is working perfectly now.

Thank you so very much!
Logged

dbrewster
Spaceship Captain
*****
Offline Offline

Posts: 110


« Reply #20 on: February 07, 2007, 08:39:43 AM »

I've been using the NMS Formmail "compatibility" package, 3.14c1. I'm using the adaptation to create a drop-option list of names, and the email addresses are hidden on the .pl file, which has been renamed. I've been renaming it frequently in my HTML page and in the filename, and even created random alphanumeric droplist values, instead of enumerating the options, but now I'm getting daily russian porno spam on it. Fortunately, most of this (probably) robotically- generated mail is in HTML mode, so it is incompatible with the plain text form, so it goes to my mail error log, but, still, some gets through, and it annoys me that my form is being exploited. However, I am pretty sure that the only people who can get this spam are the people in the mailto option list on the form, so it's not a problem for Lunarpages, just a problem for me.

I have other HTML/CGI/Perl forms which I inherited and maintain at my job, which cleverly hide all email info and paths to mail functions in a .setup file, and the HTML form calls, not a .pl file, but a .cgi file, which itself requires the setup file, and paths to mail libraries. None of those files can be viewed by a user, even if they know the path. I have never ever received spam through those forms. I was however wondering about their source, as I've never seen anything like it on my internet searches.

Should I be using the NMS modular package instead? 3.14m1. I'm going to download it and try it out. I'll let you know my results.
Logged
dbrewster
Spaceship Captain
*****
Offline Offline

Posts: 110


« Reply #21 on: February 08, 2007, 07:25:49 AM »

I've set up the modular version of NMS Formmail and renamed all "formmail"-named files. So far, no spam has been generated. I see error logs of the random-alpha-numeric character string option values as hits in a wrong directory. I also renamed the contact page to *not* include the word "contact" in the file name. That's another recommendation to users looking to protect their forms. If it continues spam-free for a while I'll report back.
Logged
leighsww
* The Tough Love Cuddly One *
Berserker Poster
*****
Offline Offline

Posts: 13870


WWW
« Reply #22 on: February 08, 2007, 10:55:00 AM »

Ah, this is GREAT, dbrewster!!  Applause

I have never even looked at implementing the modules, so if this works great for you with reducing spam, this is good to know!

I will add the word "contact" in my tutorial as another filename NOT to name the files, so thanks for mentioning that Smile

When you are done with your testing and all is good, please write up a simple tutorial on setting up the modules and I will link your post within my tutorial for anyone who wants to implement that.

Thanks for posting your info!  Thumbs Up
Logged
dbrewster
Spaceship Captain
*****
Offline Offline

Posts: 110


« Reply #23 on: March 12, 2007, 10:56:54 AM »

Unfortunately, after several weeks I did start getting spam using TFS formmail, the modular version of NMS formmail. These are, I'm sure, spam-bots, so the scripts to exploit formmail despite all precautions are out there and will only proliferate. Fortunately for Lunarpages there's no harm to the server when using these scripts (when correctly configured) because one cannot post to the script remotely (from another server) and one cannot send to any recipients other than the ones specified by the script, so the Lunarpages web host mailing function is not being exploited.

I am bored with hearing about russian p0rn0 and v1agra, however.

I explored how to enable a CAPTCHA module, and found that this must be done with a PHP page. I found some excellent help over at http://talk.code-head.com/index.php for implementing a lightweight variation of CAPTCHA, and I've launched my new [hopefully spam-bot-proof] contact page.

It would be nice if Lunarpages would make a strongly-bot-resistant PHP contact form available to customers, I see that other people are getting spam on NMS formmail as well.

---Diana
Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to: