This is a discussion on "Mail Form help!" within the PHP Forum section. This forum, and the thread "Mail Form help! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Mail Form help!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Mail Form help!
Hey guys. I did a search, and am reading on w3schools.com, but i don't quite understand how to code it...
I have a site with a form. The form is just one text box where visitors can type their email addy in, and I'd like for that address to then be sent to my email address. here's the code for the form:
|
|
|
|
#2
|
||||
|
||||
|
Re: Mail Form help!
In its most simple of forms with no security you could use
Assuming your host has php and php mail functions configured, it will send a plain text email to the given address. Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Mail Form help!
Thanks a lot. When I click submit, it just opens the php file in the window and shows the code...what am i doing wrong! lol
|
|
#4
|
||||
|
||||
|
Re: Mail Form help!
Could be one of two things
1) You didn't save the file as a .php extenstion 2) Your server is not set up for php. The .php tells the server to execute the php code. Cheers.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: Mail Form help!
Based on the sample code you provided your form is being submitted to an ASP.NET page so PHP obviously won't work.
http://lb.bcentral.com/ex/manage/subscriberprefs.aspx |
|
#6
|
|||
|
|||
|
Re: Mail Form help!
Quote:
Quote:
|
|
#7
|
|||
|
|||
|
Re: Mail Form help!
Have you got a new server with php installed?
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Mail Form | Synoptic | PHP Forum | 2 | Jun 11th, 2008 21:16 |
| PHP Form Mail | Maverick25r | PHP Forum | 2 | Sep 22nd, 2006 21:59 |
| Can someone help me with this e-mail form??? | johnson8707 | PHP Forum | 4 | Jul 4th, 2006 17:51 |
| visitors name not displayed in mail after filling in mail form | made on earth | PHP Forum | 7 | Nov 16th, 2005 22:43 |
| E-mail form ??????? | pittypatter | Web Page Design | 3 | Apr 11th, 2005 23:42 |