/    Sign up×
Community /Pin to ProfileBookmark

Email forms without Email?

Hi everybody….
I want to use an Email form on my 4-H website, [url]www.peak.org/~kvkk[/url]
and I’d like to make it so the user does not need:
-to use their Email to send it
-use their Email software

Further more, I’d like what they would send to return to me in a readable Email.
Is there any way to do this only by using JavaScript?

Thanks!

to post a comment
HTML

23 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 14.2005 — No, it requires a server-side language; php, asp, etc.
Copy linkTweet thisAlerts:
@KossuMay 14.2005 — No, it requires a server-side language; php, asp, etc.[/QUOTE]


Yup... But with a little effort and searching you can find some crafty mailing scripts that are pretty self explanatory. In fact, I did one of those as well and at that time I didn't have any experience in PHP.

Kossu
Copy linkTweet thisAlerts:
@Sunny_GauthorMay 14.2005 — Cool! Where did you find that mailing script?
Copy linkTweet thisAlerts:
@ray326May 14.2005 — The host doesn't seem to be running PHP
Apache/1.3.31 (Unix) FrontPage/5.0.2.2634 mod_ssl/2.8.19 OpenSSL/0.9.7d[/QUOTE]so your next best bet would be a Perl/CGI form handler like [URL=http://www.bignosebird.com/carchive/bnbform.shtml]bnbform[/URL].
Copy linkTweet thisAlerts:
@Sunny_GauthorMay 14.2005 — I can call my ISP and have them install PHP capabilities. I know for a fact they can run it.
Copy linkTweet thisAlerts:
@ray326May 14.2005 — I can call my ISP and have them install PHP capabilities. I know for a fact they can run it.[/QUOTE]It may be that they already are but not as an Apache module. In general having PHP available is the best way to go but for this specific task the bnbform would be quite effective.
Copy linkTweet thisAlerts:
@Sunny_GauthorMay 15.2005 — I'm kinda, sort of a somewhat new newbie, so where would I put the code if I used the bnbform? Were I wanted it to be in the page or as a seperate file? ?
Copy linkTweet thisAlerts:
@felgallMay 15.2005 — The server side script to convert the form into an email will be a separate file. You call it from the action= attribute of the form tag.
Copy linkTweet thisAlerts:
@PeOfEoMay 16.2005 — The host doesn't seem to be running PHP

so your next best bet would be a Perl/CGI form handler like [URL=http://www.bignosebird.com/carchive/bnbform.shtml]bnbform[/URL].[/QUOTE]

[COLOR=deeppink]couldn't he just use frontpage extensions?[/COLOR]
Copy linkTweet thisAlerts:
@Sunny_GauthorMay 16.2005 — Oh yeah! I'm so dumb! PEAK DOES support Front Page extensions!

Although, has anyone used it before? Does it make form posts an attachment,

or a regular E-mail?
Copy linkTweet thisAlerts:
@ray326May 17.2005 — couldn't he just use frontpage extensions?[/QUOTE]No. Frontpage Extensions is just WebDAV, not the extra macro stuff like that.
Copy linkTweet thisAlerts:
@Sunny_GauthorMay 17.2005 — Hey, I uploaded the PHP one to my same ISP, but to another website that I know is running PHP. It worked, but the reply was sent by some form.mailer Email address from the ISP, and was sent back to me much later than a regular Email should be (2 hrs or more)

Why is that, and why do they need to send it through a seperate Email account?

That's silly.
Copy linkTweet thisAlerts:
@Sunny_GauthorJun 12.2005 — I trust this PHP thing can be inserted directly into the HTML source code and not affect design in any way.
Copy linkTweet thisAlerts:
@rhsundergroundJun 12.2005 — not at all. in fact, you can use css to modify the form to make it look however you like.
Copy linkTweet thisAlerts:
@rch10007Jun 12.2005 — Try this to start your form:

[code=html]<form action="mail.php" method="post">[/code]

and then create a file and name it mail.php. Inside the file use this script:

[code=php]<?
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$to="[email protected]";
$message="Name: $namennEmail address: $emailnnnComments:nn$comments";
if(mail($to,"Comments From Your Site",$message,"From: $emailn")) {
echo "Thanks for your comments.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>[/code]


I use this simple form mailer on my site but I am trying to learn more about security in PHP because I really will hate it when someone sends me 400 emails. But it does work if you got PHP on your server.
Copy linkTweet thisAlerts:
@Sunny_GauthorJun 13.2005 — Wow! rch10007, you're so helpful! Will this PHP script send everything inside the form tag to me, or just the form area? I'll give it a try after I pry all the keys of this keyboard.... ([URL=http://www.webdeveloper.com/forum/showthread.php?t=68230]Inside joke[/URL])

To get the joke, read this all of the thread...
Copy linkTweet thisAlerts:
@rch10007Jun 13.2005 — If you have some trouble let me know. There is another thread you should check out for security purposes. It will help with a user posting multiple times by clicking the refresh button. You could possibly have some stupid user send you 1000 emails.

The thread is : http://www.webdeveloper.com/forum/showthread.php?t=69260

good luck
Copy linkTweet thisAlerts:
@rrhodesJun 13.2005 — Hi SunnyG,

This might make your project a lot easier, especially if you need to forward on the information collected in a nicely formatted email, as well as provide a personalized, formatted auto-response, and optionally store your web form inquires in a database for later email marketing (and don't want to worry about server compatibility issues):

http://www.geewebtools.com/web-forms-tools/

http://www.geewebtools.com/contact-manager-software/
Copy linkTweet thisAlerts:
@Sunny_GauthorJun 13.2005 — rch10007, I gave your bit of PHP a try. It seemed to work, but I am worried about the stupid users out there spamming me.

Earlier in this forum, I was refered to this:

http://www.webdevfaqs.com/php.php

Could you look at it and tell me if it would have the security features to prevent "Stupid-User-Spam"? I don't know any PHP:o, but it seems as if, if the post was successful, instead of using ECHO to display "The post was successful" it will direct the browser to another page.

Thanks!?
Copy linkTweet thisAlerts:
@Sunny_GauthorJun 14.2005 — Hi everybody....

I got this PHP Email thingy to work on my server... I think I'll stick with it.

[URL=http://www.webdevfaqs.com/php.php]http://www.webdevfaqs.com/php.php[/URL]
Copy linkTweet thisAlerts:
@rhsundergroundJun 15.2005 — Hi everybody....

I got this PHP Email thingy to work on my server... I think I'll stick with it.

[URL=http://www.webdevfaqs.com/php.php]http://www.webdevfaqs.com/php.php[/URL][/QUOTE]

woo! i win!
×

Success!

Help @Sunny_G spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...