/    Sign up×
Community /Pin to ProfileBookmark

Simple Form Help

Okay, I know this is probably stupid but I have been going crazy over this all night. How can I get a form to mail form an inputted e-mail address instead of having the page try to mail the form from your computer’s default e-mail? Thanks in advance for any help offered.

to post a comment
HTML

14 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyJun 17.2007 — You need a server side language, like PHP, then use the mail() function.
Copy linkTweet thisAlerts:
@br3ntauthorJun 17.2007 — dont you have to use a database for php to work?
Copy linkTweet thisAlerts:
@ryanbutlerJun 17.2007 — No, PHP has many other functions besides database interactivity. Such as reading, writing and deleting text files, form submission to email, increasing the effectiveness of navigational maintenance with server-side includes, just to name a few.
Copy linkTweet thisAlerts:
@br3ntauthorJun 17.2007 — well thank you all very much for your help! i will change this to resolved if i manage to learn enough in the next few hours to make it work!
Copy linkTweet thisAlerts:
@br3ntauthorJun 17.2007 — Okay, I do not know enough about PHP, will someone please give me a simple code. All I want is a form with a textarea that will mail to an email from an inputted e-mail, I will be able to interpret the code from there, thanks in advance!
Copy linkTweet thisAlerts:
@br3ntauthorJun 18.2007 — Bump
Copy linkTweet thisAlerts:
@Major_PayneJun 18.2007 — Sample:

<form action="http://www.you.com/cgi-bin/FormMail.pl" method="post">

<table cellpadding="3">

<tr><td align="right"><b>Your Name:</b></td><td><input type="text" name="realname"></td></tr>

<tr><td align="right"><b>Email Address:</b></td><td><input type="text" name="email"></td></tr>

<tr><td align="center" colspan="2"><b>Would you like a reply?</b> <INPUT TYPE="radio" NAME="reply" VALUE="yes" checked>Yes <INPUT TYPE="radio" NAME="reply" VALUE="no">No <i>(check one)</i></td></tr>

<tr><td align="center" colspan="2"><br>

<input type="hidden" name="recipient" value="[email protected]">

<input type="hidden" name="redirect" value="http://ThankYouPagePathHere">

<input type="hidden" name="required" value="email, name,">

<input type="hidden" name="env_report" value="REMOTE_HOST, HTTP_USER_AGENT">

<input type="hidden" name="print_config" value="email,subject">

<input type="hidden" name="print_blank_fields" value="1">

<input type="hidden" name="title" value="Contact Us">

<input type="hidden" name="return_link_url" value="http://www.donssportsman.com/">

<input type="hidden" name="return_link_title" value="My Home Page">

<input type="hidden" name="background" value="http://AddBGImagePathHere">

<input type="hidden" name="bgcolor" value="BG Color Here">

<input type="hidden" name="text_color" value="Text Color Here">

<input type="hidden" name="link_color" value="Link Color Here">

<input type="hidden" name="vlink_color" value="Link Color Here">

<input type="hidden" name="alink_color" value="Link Color Here">

<p><input type="submit" value="Send Message"> <input type="reset"></p>

Ron

P.S. Forgive the tables. haven gotten around to changing the template.
Copy linkTweet thisAlerts:
@br3ntauthorJun 18.2007 — Thank you so much! Lol, this has been making me so mad that I could cry. Now lets see if I can make it work...
Copy linkTweet thisAlerts:
@Major_PayneJun 19.2007 — You're welcome. Most of it is just putting in the right info where indicated. Your hosting service must be PHP enabled for it to work.

Ron
Copy linkTweet thisAlerts:
@br3ntauthorJun 19.2007 — So...could I somehow make it work on a GeoCities account? I'm broke and don't feel that HTML is a hobby that I can afford to contribute money to at this point.
Copy linkTweet thisAlerts:
@Major_PayneJun 19.2007 — I'm afraid you can't use it on Geocities unless you have the Pro Plan. Will see if I can come up with something else you can use on the free hosting site you have. Unless someone else comes up with it before I get back.

Ron
Copy linkTweet thisAlerts:
@br3ntauthorJun 19.2007 — I appriciate it man!
Copy linkTweet thisAlerts:
@adamclementJun 21.2007 — go to joshosts.com for good free php enabled hosting

and tell them adam at auction.static-media.com sent ya
Copy linkTweet thisAlerts:
@Major_PayneJun 21.2007 — So...could I somehow make it work on a GeoCities account? I'm broke and don't feel that HTML is a hobby that I can afford to contribute money to at this point.[/QUOTE]
If you want to use the form I posted, check out signing up for Paul McFedries' MailForm service. It's the best solution I could come up with since you are using Geocities.

MailForm Service

Ron
×

Success!

Help @br3nt 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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