|
|
|
|
![]() ![]() |
Apr 17 2005, 11:15 AM
Post
#1
|
|
|
Member [ Level 2 ] Group: Members Posts: 59 Joined: 16-April 05 Member No.: 4,039 |
Ah yes, the magical and dreaded form. Anyways, just a small question regarding them.
I've checked a few pages out that talk about the "action" prompt in the form coding. What I'm trying to achieve is having the form email an account of mine when the user hits "submit". Now I know the old, easy way out of this was to have action="mailto:my.email@my.email.box.com". After reading a bit on this (and trying it myself), I've discovered this is not a suitable solution. What happens when you use mailto in the form is when submit is clicked, it opens up your default email program (usually outlook for Win users). Obviously this can't be had Upon further reading (albeit vague reading), the pages I read talked about using a server-side php/cgi/asp file to send the mail. Only problem is, none of the sites gave examples of the file for people to examine and perhaps duplicate for their own uses. If someone could either post an example of one of these files, or give me a link not to the file it's self, but to a page the talks about what is actually going on inside the file, that would be great |
|
|
|
Apr 17 2005, 11:47 AM
Post
#2
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 myCENTs:84.36 |
Check out this other post of mine: http://www.astahost.com/form-mail-javascript-t3771.html - this illustrates exactly what you intend to do. There's a php code in this post that you can save as a file, and then, instead of redirecting your action="mailto:" you set it to action="filename.php" - all your form's contents will be sent to this script - which then parses and break it up into appropriate lines and mails it to you using the commandline mailer named mail. There are ample comments in the code - so I guess understanding it won't be a big problem.
All the best |
|
|
|
Apr 17 2005, 11:52 AM
Post
#3
|
|
|
Pretty please? Group: Members Posts: 733 Joined: 28-November 04 From: Holland Member No.: 1,552 |
Really, have you seen that little button on the right top of this page called search?
and if you click it, and you enter the words 'php email script form' You might have landed on THIS topic http://www.astahost.com/index.php?showtopic=3771&hl= The moral of the story, use the almighty search, it is there to be used. Please use this function first because else the forum will be filled with topics about the same stuff TOPIC CLOSED edit: hmm whoops micro beat me to this |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 2nd December 2008 - 09:36 PM |