i need an html code...

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 30th, 2006, 23:23
New Member
Join Date: Jul 2006
Location: oklahoma
Age: 18
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Jul 30th, 2006, 23:35
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
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.
Reply With Quote
  #3 (permalink)  
Old Jul 31st, 2006, 03:35
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Jul 31st, 2006, 10:57
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
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)
Reply With Quote
  #5 (permalink)  
Old Jul 31st, 2006, 11:51
New Member
Join Date: Jul 2006
Location: india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>

</form>
quality support
Reply With Quote
  #6 (permalink)  
Old Jul 31st, 2006, 11:52
minute44's Avatar
Moderator
Join Date: Apr 2006
Location: Nottingham UK
Age: 24
Posts: 1,347
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to minute44
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)
Reply With Quote
  #7 (permalink)  
Old Jul 31st, 2006, 11:54
New Member
Join Date: Jul 2006
Location: india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: i need an html code...

hope this helps
Reply With Quote
  #8 (permalink)  
Old Jul 31st, 2006, 14:12
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: i need an html code...

http://www.alistapart.com/articles/sendtofriend/
__________________
I've got <style> and .class
Reply With Quote
  #9 (permalink)  
Old Jul 31st, 2006, 14:13
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,608
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: i need an html code...

Bleh that one uses vbscript sorry about that.
__________________
I've got <style> and .class
Reply With Quote
Reply

Tags
html, code

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43