Web page HTML writing

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

Web page HTML writing

Post by lilrodie on Tue Jul 15, 2008 10:18 pm
([msg=7504]see Web page HTML writing[/msg])

Ok this may seem like a n00b question, but I'm learning... Anyway... I want to make a form that you can submit and it will send everything that you fill in to an email address... So far I cannot quite figure it out. Can anyone help me with this, or at least point me in the right direction?


EDIT: figured out a code for the e-mail thing.... is there anyway to make the automatic e-mail thing anonymous?
lilrodie
New User
New User
 
Posts: 3
Joined: Tue Jul 15, 2008 9:07 pm
Blog: View Blog (0)


Re: Web page HTML writing

Post by fashizzlepop on Tue Jul 15, 2008 11:24 pm
([msg=7506]see Re: Web page HTML writing[/msg])

How do you mean anonymous? Like it doesnt show the IP it was sent from?
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2303
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Re: Web page HTML writing

Post by lilrodie on Wed Jul 16, 2008 12:14 am
([msg=7511]see Re: Web page HTML writing[/msg])

no like, the code i use, opens up for a (for example) Microsoft Mail program that just fill in the e-mail for you.... is there anyway to just send a e-mail instead of having to go through a e-mail program? If not, ok. But I'm just making sure
lilrodie
New User
New User
 
Posts: 3
Joined: Tue Jul 15, 2008 9:07 pm
Blog: View Blog (0)


Re: Web page HTML writing

Post by L0DER on Wed Jul 16, 2008 6:07 am
([msg=7524]see Re: Web page HTML writing[/msg])

Do you mean that you press submit and it automatically sends the information to you. Then you can't do it in HTML, you need PHP and a server that supports the mail(); function.
Its look like this.
Code: Select all
<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\r\n";

mail($to, $subject, $message, $headers);
?>

You can check it out http://php.net/manual/en/function.mail.php
L0DER
New User
New User
 
Posts: 26
Joined: Tue Apr 22, 2008 12:58 am
Blog: View Blog (0)


Re: Web page HTML writing

Post by thedotmaster on Wed Jul 16, 2008 7:19 am
([msg=7534]see Re: Web page HTML writing[/msg])

And most free webhosts disable the mail() function.. just so ya know..
Image
User avatar
thedotmaster
Contributor
Contributor
 
Posts: 984
Joined: Sun May 04, 2008 4:39 pm
Location: North West UK
Blog: View Blog (1)


Re: Web page HTML writing

Post by lilrodie on Wed Jul 16, 2008 11:00 am
([msg=7552]see Re: Web page HTML writing[/msg])

Thanks guys it was really helpful, I appreciate it.
lilrodie
New User
New User
 
Posts: 3
Joined: Tue Jul 15, 2008 9:07 pm
Blog: View Blog (0)


Re: Web page HTML writing

Post by L0DER on Sat Jul 19, 2008 1:18 am
([msg=7809]see Re: Web page HTML writing[/msg])

thedotmaster wrote:And most free webhosts disable the mail() function.. just so ya know..

You're right, but there is 000webhost.com it is pretty good and has the mail(), shame the let only us, I think.
L0DER
New User
New User
 
Posts: 26
Joined: Tue Apr 22, 2008 12:58 am
Blog: View Blog (0)


Re: Web page HTML writing

Post by thedotmaster on Sun Jul 27, 2008 6:19 pm
([msg=8464]see Re: Web page HTML writing[/msg])

L0DER wrote:
thedotmaster wrote:And most free webhosts disable the mail() function.. just so ya know..

You're right, but there is 000webhost.com it is pretty good and has the mail(), shame the let only us, I think.

Good site, but you might as well pay for hosting and a domain. Worth it in the long run.
Image
User avatar
thedotmaster
Contributor
Contributor
 
Posts: 984
Joined: Sun May 04, 2008 4:39 pm
Location: North West UK
Blog: View Blog (1)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron