| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 66448 | 2006-02-23 08:25:00 | Need email form for website | hotkiwi (6379) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 433243 | 2006-02-23 08:25:00 | Friends, i am working on a website (www.reiki.net.nz), and on the last (contact) page I need to include a email form, basically just to have the name, email adress and a question to be filled out. I created this in php, but that appears not to be supported by the webhoster. Where can i find a simple email form in HTML? Cheers Johan |
hotkiwi (6379) | ||
| 433244 | 2006-02-23 08:34:00 | HTML is used to structure the layout of a page. It can't process data as it isn't a server side scripting language like PHP is. If your host doesn't support PHP, switch hosts. It is a very basic feature and there isn't any excuse for not offering it. | maccrazy (6741) | ||
| 433245 | 2006-02-23 08:36:00 | arn't there a zillion free scripts you can download from script sites that do this? Have a dig here http://hotscripts.com/ |
netchicken (4843) | ||
| 433246 | 2006-02-23 08:45:00 | You can, but they are unnecessary and also require server side scripting support such as PHP, ASP, Ruby on Rails etc. All you have to do for something simple like this, as it sounds as though hotkiwi has already done, is to send the data to a page with the following PHP: <?php mail("youremailaddress@domain.com", "$subject", "$body", "From: $email"); ?> |
maccrazy (6741) | ||
| 433247 | 2006-02-23 08:57:00 | Seriously, as suggested, if your host doesnt support php it would be a good thing to move. Unless your host supports asp? |
mejobloggs (264) | ||
| 433248 | 2006-02-23 08:58:00 | or CGI? | stu161204 (123) | ||
| 433249 | 2006-02-23 09:01:00 | Thanks for the feedback. The host supports asp and cgi. But the whole site is now written in html.......... |
hotkiwi (6379) | ||
| 433250 | 2006-02-23 09:18:00 | You dont need php (although it's better if you can use it) Try this, I use it all the time for exactly your reasons Copy and paste the whole thing into an empty notepad and save it as htmlemailform.html (or whatever you like) For easy use I've posted the whole page code Just change the email addy to your own There's some formatting etc there you can change to suit yourself there are many other ways to lay it out as I'm sure you already know <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <TITLE>Html Email Form</TITLE> <style type="text/css"> .ws6 {font-size: 8px;} .ws7 {font-size: 9.3px;} .ws8 {font-size: 11px;} .ws9 {font-size: 12px;} .ws10 {font-size: 13px;} .ws11 {font-size: 15px;} .ws12 {font-size: 16px;} .ws14 {font-size: 19px;} .ws16 {font-size: 21px;} .ws18 {font-size: 24px;} .ws20 {font-size: 27px;} .ws22 {font-size: 29px;} .ws24 {font-size: 32px;} .ws26 {font-size: 35px;} .ws28 {font-size: 37px;} .ws36 {font-size: 48px;} .ws48 {font-size: 64px;} .ws72 {font-size: 96px;} .wpmd {font-size: 13px;font-family: 'Arial';font-style: normal;font-weight: normal;text-decoration: none;} </style> </head> <body> <form name="form1" method="POST" action="mailto:you@emailaddress.co.nz (you@emailaddress.co.nz)" enctype="text/plain"> <input name="name" type="text" style="position:absolute;width:150px;left:237px;top:126px ;z-index:1"> <input name="subject" type="text" style="position:absolute;width:150px;left:237px;top:157px ;z-index:2"> <textarea name="message" style="position:absolute;width:200px;height:100px;left:23 7px;top:188px;z-index:3"></textarea> <input name="submit" type="submit" value="submit" style="position:absolute;left:237px;top:297px;z-index:4"> </form> <div id="text1" style="position:absolute; overflow:hidden; left:92px; top:128px; width:128px; height:114px; z-index:5"> <div class="wpmd"> <div align=right>Name </div> <div align=right><BR> </div> <div align=right>Email </div> <div><BR> </div> <div><BR> </div> <div align=right>Do you like beans? </div> </div> </div> </html> |
bartsdadhomer (80) | ||
| 433251 | 2006-02-23 10:55:00 | CGI is just as good, I suggest mattworld's formmailer script? Sorry, haven't used premade scripts in years now, so finding it hard to remember who wrote this script. Even though the sites written in HTML, languages like CGI, PHP, ASP etc, are considered backends, e.g. HTML is the frontend, the others are backends which basically handle all the information in the background when your form sends the data to them. Not only are they backends, they also complement HTML by giving it a way to create dynamic content easily. You basically tell those scripts what you'd like done with the information, and where you'd like to send the person who just submitted the information to. The script handles it all, emails it out to yourself, and it's done. Cheers, KK |
Kame (312) | ||
| 433252 | 2006-02-23 20:10:00 | Most web hosts provide a standard cgi script to email form data. Contact your webhost and ask them if they can send you and example of one. | dolby digital (5073) | ||
| 1 2 | |||||