What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Contact Form Code

Pages: (2): « First [ 1 ] 2 » Last »
Contact Form Code
Author: Message:
Tasha
Senior Member
****

Avatar

Posts: 717
Reputation: 81
32 / Female / Flag
Joined: Jan 2005
O.P. Contact Form Code
I want a contact form on my site, but I just need to know a code for it, basically. I don't really want a plugin or anything like that.

I need the basic fields:

Name:
Email:
Website:
Message:

And then a submit button which submits to my email. :tongue:

Thanks for any help. :happy:
www.mycutelobster.co.uk
"Of course it is happening inside your head, Harry,
but why on earth should that mean that it is not real?"
08-16-2005 08:55 PM
Profile PM Web Find Quote Report
Fourjays
Full Member
***

Avatar
Jaguar E-Type

Posts: 134
Reputation: 6
36 / Male / –
Joined: Jan 2005
RE: Contact Form Code
Sign up on here: http://allforms.mailjol.net/main.html

Then make a form on your website (html). Wordpress will run standard HTML code. Then follow the instructions on the site above for details of making the form go to your email. :p

HTML Form tutorial: http://www.w3schools.com/html/html_forms.asp
[Image: msgsig7yx.jpg]
A new range of internet based services... Coming Soon(ish)! - www.fortheinter.net
08-16-2005 09:01 PM
Profile E-Mail PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Contact Form Code
code:
<?php

$memail = "Your@email.com";

echo "<table><tr><td>";
if ($_POST['act'] == 'send') {
if (isset($_POST['name'])) {
if (isset($_POST['email'])) {
if (isset($_POST['body'])) {
$_POST['body'] = $_POST['body'] . "\n\n   -- " . $_POST['name']
mail($memail,Contact Form,$_POST['body'],"From: " . $_POST['email'] . "\n" . "Return-Path: " . $_POST['email'] . "\n" . "Reply-To: " . $_POST['email'] . "\n");
echo "<pre style="color:\#FF0000;\">Your comments have been submitted.</pre>";
} } } }
echo "<form method=\"POST\" action \"" . $_SERVER['PHP_SELF'] . "\">"; ?></td></tr><tr><td>Name:</td><td><input type="text" name="name"/></td></tr><tr><td>Email</td><td><input type="text" name="email"/></td></tr><tr><td>Comments:</td><td><textarea name="body"></textarea></td></tr></table></form>

Not sure if it works, wrote it just now...

This post was edited on 08-16-2005 at 09:18 PM by ShawnZ.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-16-2005 09:18 PM
Profile PM Web Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
RE: Contact Form Code
you couldn't have just asked your brother? lol

:P

hmm all i cud do was this... im still naff at html... how do i get it to mail the infromation to an email?

code:
<form name="form1" method="post" action="">
  Name:
  <input type="text" name="textfield">
<p>    Email:   
  <input type="text" name="textfield">
<p>    Website:
  <input type="text" name="textfield">
<p>    Message:
  <input type="text" name="textfield">
<p>
<input type="submit" name="Submit" value="Submit">
</form>

ta

EDIT: oh what its ment to be in php? oops:P can someone still tell me the email thing:P ta

This post was edited on 08-16-2005 at 09:23 PM by M73A.

[Image: lost7ru.gif]
08-16-2005 09:22 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Contact Form Code
quote:
Originally posted by may73alliance
EDIT: oh what its ment to be in php? oops can someone still tell me the email thing ta

you can only do it in php >.<

This post was edited on 08-16-2005 at 09:24 PM by ShawnZ.
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-16-2005 09:23 PM
Profile PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Contact Form Code
quote:
Originally posted by may73alliance
you couldn't have just asked your brother? lol

:P

hmm all i cud do was this... im still naff at html... how do i get it to mail the infromation to an email?

code:
<form name="form1" method="post" action="">
  Name:
  <input type="text" name="textfield">
<p>    Email:   
  <input type="text" name="textfield">
<p>    Website:
  <input type="text" name="textfield">
<p>    Message:
  <input type="text" name="textfield">
<p>
<input type="submit" name="Submit" value="Submit">
</form>

ta

http://www.php.net/mail
08-16-2005 09:24 PM
Profile PM Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
RE: Contact Form Code
woah i don't know any php so owell:P thanks anyway

[Image: lost7ru.gif]
08-16-2005 09:27 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Contact Form Code
quote:
Originally posted by may73alliance
woah i don't know any php so owell:P thanks anyway

Then how did you expect the mail to be sent :undecided:
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-16-2005 09:29 PM
Profile PM Web Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
RE: Contact Form Code
quote:
Originally posted by ShawnZ
quote:
Originally posted by may73alliance
woah i don't know any php so owell:P thanks anyway

Then how did you expect the mail to be sent :undecided:

html!

quote:
Originally posted by Fourjays
HTML Form tutorial: http://www.w3schools.com/html/html_forms.asp

[Image: lost7ru.gif]
08-16-2005 09:33 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Contact Form Code
quote:
Originally posted by may73alliance
quote:
Originally posted by ShawnZ
quote:
Originally posted by may73alliance
woah i don't know any php so owell:P thanks anyway

Then how did you expect the mail to be sent :undecided:

html!

quote:
Originally posted by Fourjays
HTML Form tutorial: http://www.w3schools.com/html/html_forms.asp


Yes, but that method sucks balls and doesn't work on all browsers

it also needs you to open the mail client and hit send aswell :p
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
08-16-2005 09:38 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On