This is a discussion on "i need an html code..." within the Web Page Design section. This forum, and the thread "i need an html code... are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
i need an html code...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
i need an html code...
i need an html code so that users on my website can fill out a form and it sends directly to my email address. thanks
Last edited by anderson10; Jul 30th, 2006 at 23:55. |
|
|
|
|||
|
Re: i need an html code...
www.hotscripts.com for ready made scripts.
If you have trouble installing them, read the readme. If you want to make your own then please learn php or asp depending on your host. |
|
|||
|
Re: i need an html code...
As sypher says, you're looking at php or some kind of SSI (server side include). This means you run a script from your hosts server for this function. You can get ready-made scripts from the link sypher posted.
Make sure your host has SSI's or the form will not run. You can also do a simple version using FrontPage but then you would need your host to have FrontPage extensions running. |
|
||||
|
Re: i need an html code...
Ah Mr. Anderson....lol Always wanted to say that....
Yeah, you want a PHP solution. Look in the PHP forums... there's loads there.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
|||
|
Re: i need an html code...
<?
if(isset($_POST[act]) && $_POST[act] == "yes") { $field1 = $_POST[field1]; $field2 = $_POST[field2]; $field3 = $_POST[field3]; $from = "Form address"; $subject = "Your subject here"; $to = "email address"; $body = "add mail contents here"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "Content-Transfer-Encoding: 8bit\n"; $headers .= "From: $_SERVER[HTTP_HOST] <$from>\n"; $headers .= "X-Priority: 1\n"; $headers .= "X-MSMail-Priority: High\n"; $headers .= "X-Mailer: PHP/" . phpversion()."\n"; if(mail($to, $subject, $body, $headers)) echo "mail sent"; else echo "failure"; } ?> <form name="form1" action="" method="post"> <input type="hidden" name="act" value="yes"> <table width="80%" border="0" cellspacing="2" cellpadding="1"> <tr> <td width="36%">Field1</td> <td width="64%"><input name="field1" type="text" id="field1"></td> </tr> <tr> <td>Field2</td> <td><input name="field2" type="text" id="field2"></td> </tr> <tr> <td>Field3</td> <td><input name="field3" type="text" id="field3"></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="Submit" value="Submit"></td> </tr> </table> </form> quality support |
|
||||
|
Re: i need an html code...
Do that without the tables and you might be on to something there sparky...
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
|||
|
Re: i need an html code...
hope this helps
|
![]() |
| Tags |
| html, code |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [code], [html], [php] | CloudedVision | Webforumz Suggestions and Feedback | 2 | Feb 20th, 2008 23:01 |
| HTML Code Help | DregondRahl | Web Page Design | 4 | Jul 11th, 2007 00:20 |
| HTML Code - Help Please Anyone? | nuddy | Starting Out | 14 | Apr 24th, 2007 10:05 |
| How I convert Html code to pDF | vijiljones | Web Page Design | 2 | Oct 11th, 2006 13:57 |
| html code help | Aaron1988 | Web Page Design | 3 | Aug 22nd, 2006 09:52 |