Welcome Guest ( Log In | Register )



 
Closed TopicStart new topic
> Forms
nachtgeist03
post Apr 17 2005, 11:15 AM
Post #1


Member [ Level 2 ]
Group Icon

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 wink.gif

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 cool.gif
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Apr 17 2005, 11:47 AM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

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 smile.gif
Go to the top of the page
 
+Quote Post
jipman
post Apr 17 2005, 11:52 AM
Post #3


Pretty please?
Group Icon

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? wink.gif

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
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How Do You Create Web-Forms?(8)
  2. Advanced Form Question(0)


 



- Lo-Fi Version Time is now: 2nd December 2008 - 09:36 PM