| | Hey guys i am new at this. i am trying to make a form and i want the form when submited go to my email adress..how can i do this? any help please... |
|
|
If you're trying to test the file on your home computer, you need to have php installed(most likely with Apache). EasyPHP is the easiest way to install everything you need for php and mySql(that I know of). I've never successfully been able to get a mail form to work on my home computer, but everything works on hosted sites here, because they already have everything installed. According to http://www.freewebmasterhelp.com/tutorials/php/5 you need this: CODE <?php $to = "php@gowansnet.com"; $subject = "PHP Is Great"; $body = "PHP is one of the best scripting languages around"; $headers = "From: webmaster@gowansnet.com\n"; mail($to,$subject,$body,$headers); echo "Mail sent to $to"; ?> To set one of those variables to equal an input, just make sure everything is all in one form, make some text inputs, set their id to something useful (such as 'body') and set the form's action to be the url of your php file.(HTML and php can be in the same file. Just make sure the php is enclosed in <?php and ?> tags) Then, instead of having it be "$body = '...'", you set it to "$body = $_POST['body']"(without the double quotes) Then you can do that for whichever other variables you need. I'm not sure if you're ever supposed to set the 'from' variable for the mail function. I hope this was helpful, and if anything I've said doesn't work, either ask the other people on the forums, or Google it.
Thanks very much, i really apreciate it. Now time to read about Php.
Similar Topics
Keywords : dreamweaver forms
Okay, so I was trying to FTP these files over dreamweaver today... and it seemed to be working fine. dreamweaver on linux I have a little problem, i recently started tu run linux on my I has use a lot all of macromedia suit like Dreamweaver ultradev4 , 4 , mx , mx2004. Is there Dreamweaver is founded by Macromedia and Front page is founded by Microsoft. Both are used for i have installed cs3 and its good with html and such but when im previewing .php files its showing Hey guys i am trying to make a page for posting things. I don't know if you have seen the page Hello all. I've been using Dreamweaver for a couple of months now and I'm learning as I go. the best way, but mostly the easiest way to design a web site is using Macromedia Dreamweaver 8, Hey guys I use dreamweaver to code my sites, I heard even though the "hardcore" people dont use it, HI, If anybody worked with dreamweaver, and succesfully used JS codes and CSS in their website, Ive been to numerous sites where people can click on a link and download a video. Maybe its I recently downloaded Macromedia's Dreamweaver 8, and I can say that it is the greatest Hi please help me. I got Dreamweaver, Fireworks, and Flash Professinal and they are all the best Hey, for a few years now I have been using Microsoft Frontpage, and lately the latest one 2003. Hi guys, Am new to designing. How do I : 1) include a popup form on my webpage for the visitor to Here are the names of the tools to build coll web forms with php, cgi, asp and html: Quask Just go here to make your web forms: CODE www.logiforms.com Register first.... Looking for dreamweaber, forms
|
|
![]() Dreamweaver Forms - HELP |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|