SRL Archive - Web Development

E-Mail Form?


dvdcrayola

2007-08-12 19:54:53

well, this is kind of a request, but i guess i wouldnt mind learning:rolleyes:

but i need to make a form with the entries: name, problem, and return number. to send an email to an adress.

thanks if you help

TravisV10

2007-08-12 19:56:03

http://www.w3schools.com/

EDITED! Happy now "No sense of humor Drunkenoldma"?

Drunkenoldma

2007-08-12 21:04:53

From: born2code
http://www.w3schools.com/

Pwned!


Please, don't say 'Pwned!' when you did something 'funny' (which isn't) yourself, if people think you 'Pwned!' him, they'll tell you yourself…
As for the answer, dvdcrayola, you just need to make this:
<FORM ACTION="mailto:youremail@dress.com" METHOD="POST" ENCTYPE="text/plain">
Name<BR>
<INPUT TYPE="text" NAME="name" SIZE="40"><BR>
Return Number<BR>
<INPUT TYPE="text" NAME="number" SIZE="40"><BR>
Problem<BR>
<TEXTAREA NAME="problem" COLS="40" ROWS="5"></TEXTAREA><BR>
<INPUT TYPE="submit" VALUE="Send">
</FORM>
and change the 'youremal@dress.com' to the emailadress where the form needs to send too.

TravisV10

2007-08-12 21:06:24

geez sorry…

it was just a joke!

Drunkenoldma

2007-08-12 21:10:51

Well, I didn't find it very amuzing..

dvdcrayola

2007-08-13 01:39:03

and that will send exactly what is inputed into the form?

actually, ill just try it

EDIT: i dont have a way to test it.. haha

Ron

2007-08-16 19:53:34

dvdcrayola, if you can, try editing this one I made.

It has the following fields:
- Name
- Person's Email
- Email Subject
- Message

http://www.villavu.com/forum/showthread.php?t=13964

~Ron :)

dvdcrayola

2007-08-16 19:59:44

thanks ron, ill give it a shot

ecclesiastes

2007-11-26 13:38:04

and that will send exactly what is inputed into the form?

actually, ill just try it

EDIT: i dont have a way to test it.. haha


W000t! you should have a PHP server to test scripts… and that script will probably wont work (on localhosts) because most probably they wont have smtp or PHP mail function correctly working (and most of the free web hosters have blocked this function scared of spammers!)

A G E N T

2007-12-11 20:16:48

Build a POST form like the one someone showed above, then read up on:

http://ca.php.net/manual/en/function.mail.php