email form

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

email form

Postby Mr. Rogers » Mon Aug 02, 2004 10:00 pm

does anyone know where i can get some code for an email form? i want to put something on my site that people will be able to type into and email me. all i need is a box for name/email address and a comment box. thanks.
User avatar
Mr. Rogers
 
Posts: 1512
Joined: Sat Sep 06, 2003 10:23 pm
Location: Chicago, IL

Postby Jester » Mon Aug 02, 2004 11:53 pm

If you use the command (in generics)
<a href="mailto:address@whatever.com">text</a>

When they click on it, their default mail program pops up with a blank email addressed to you.

As for forms, I don't like to mess with them, so I can't help you there. The main HTML reference I use is

http://freespace.virgin.net/sizzling.jalfrezi/iniframe.htm

I know the address sounds wierd, but the site is clean.
User avatar
Jester
 
Posts: 23
Joined: Mon Aug 02, 2004 7:08 pm
Location: Middle of Nowhere^2

Postby Mithrandir » Fri Aug 06, 2004 6:50 pm

What language are you looking for it in? PHP, perl, java, C shell?
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby Kaligraphic » Sun Aug 29, 2004 5:47 am

for the form:
Code: Select all
<form action="mailme.php" method="post">
Name/email address: <input type="text" name="name">

Message:

<textarea rows="8", cols="20"></textarea>

<input type="reset"><input type="submit">
</form>

Of course, you can and should change that to make it look better, but that is a working form. It requires a "mailme.php" in the same directory, but you can substitute a perl script or asp program or whatever you want. I could probably write the php code for you if you have a host with php support.
The cake used to be a lie like you, but then it took a portal to the deception core.
User avatar
Kaligraphic
 
Posts: 2002
Joined: Wed Jul 21, 2004 12:00 pm
Location: The catbox of DOOM!


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 256 guests