Hey ya'll.
I want to earn how to do it "practically" ( as in, CODE IT) and when I google it, all I get is tips for what info to present in the page and some "programs" that can make it for me.
I want to make it on my own, for ex.
Name: john do
Email: john.d@gmail.net
Comments: no comments
[Submit] ->clicking this will email me all the fields above with their content.
I know it shouldn't be hard, but there is probably also a server-side proccess here.
Can anyone please guide me through it?
Yours truely,
Demodex
Landing page
Started by Demodex, Jan 19 2010 06:57 AM
11 replies to this topic
#1
Posted 19 January 2010 - 06:57 AM
Demodex is one of the parasitic face mites that occur on people
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
|
|
|
#2
Posted 19 January 2010 - 07:02 AM
<form action="MAILTO:your addresshere@gmail.com" method="post" enctype="text/plain"> <h3>This form sends an e-mail to whoever you want.</h3> Name:<br> <input type="text" name="name" value="yourname" size="20"> <br> EMail Address:<br> <input type="text" name="mail" value="yourmail" size="20"> <br> Comment:<br> <input type="text" name="comment" value="yourcomment" size="40"> <br><br> <input type="submit" value="Send"> <input type="reset" value="Reset"> </form>
so do you know how to use the <form> tags if so you probably understand what that was but if not here's a link on forms.
EDIT: if you need more help ask.:)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#3
Posted 19 January 2010 - 07:08 AM
W3Schools Online Web Tutorials
HTML & CSS would be the design part of it.
PHP would do the mailing, if you just want to mail it check out the mail() function if you don't want to use this you can use the mailto like thegamemaker suggested.
HTML & CSS would be the design part of it.
PHP would do the mailing, if you just want to mail it check out the mail() function if you don't want to use this you can use the mailto like thegamemaker suggested.
#4
Posted 19 January 2010 - 07:27 AM
Thanks guys for your quick answers!
My aim is to make it as simple as possible (btw, how can I make it so that when someone views the page source he wont see my email address?).
thegamemaker, could you give me a quick tour through your code as to where is the line that tells the page to send all the fields to the email? I see no linking between the submit and the fields in the context.
BlaineSch, would php be easier?
Although for what I know it can't get any easier than html.
My aim is to make it as simple as possible (btw, how can I make it so that when someone views the page source he wont see my email address?).
thegamemaker, could you give me a quick tour through your code as to where is the line that tells the page to send all the fields to the email? I see no linking between the submit and the fields in the context.
BlaineSch, would php be easier?
Although for what I know it can't get any easier than html.
Demodex is one of the parasitic face mites that occur on people
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
#5
Posted 19 January 2010 - 07:29 AM
You cant hide the email, the thing thegamemaker showed you will open up your default email client to send the email with all those things already filled in. Via the "mailto" protocol. But besides that it's just a <form> with <input> tags to help fill stuff in.
#6
Posted 19 January 2010 - 07:31 AM
OK, well I want the mail sent through the web page itself.
In that case my goal is to do it via php?
In that case my goal is to do it via php?
Demodex is one of the parasitic face mites that occur on people
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
#7
Posted 19 January 2010 - 07:33 AM
Yes, you'd simply get thegamemakers code, and change the form action to the same page, and do some php:
You might do some extra validating but that's the basis of it.
<?PHP
if($_POST) {
mail('to@to.com', 'Subject', print_r($_POST, true));
}
You might do some extra validating but that's the basis of it.
#8
Posted 19 January 2010 - 07:37 AM
I guess your going to use PHP. Do you still want me to show you how that HTML works?
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#9
Posted 19 January 2010 - 07:43 AM
Hmm, BlaineSch- isn't there a missing ">" at your code?
According to what you say, I should take thegamemaker's original code and put it in instead of the first line in the code. Am I right?
thegamemaker, that should be nice :)
According to what you say, I should take thegamemaker's original code and put it in instead of the first line in the code. Am I right?
thegamemaker, that should be nice :)
Demodex is one of the parasitic face mites that occur on people
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
#10
Posted 19 January 2010 - 08:00 AM
<form action="MAILTO:your addresshere@gmail.com" method="post" enctype="text/plain">This make any thing in the form below(if submitted) go to your email.
Name:<br> <input type="text" name="name" value="yourname" size="20"> </form>That just makes a new input box and assigns them with values.(same for the other two)
<input type="submit" value="Send"> <input type="reset" value="Reset">this makes a button that submits the information of the form above to the email address. the other is a reset button to reset the fields.
Hope that explained it, probably not so read this Page it will explain better.:)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#11
Posted 19 January 2010 - 10:37 AM
Now I get it, thanks man :)
BlaineSch,
I'll be happy to have your comment on my latest post.
BlaineSch,
I'll be happy to have your comment on my latest post.
Demodex is one of the parasitic face mites that occur on people
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
#12
Posted 19 January 2010 - 10:42 AM
Now I get it, thanks man :)
BlaineSch,
I'll be happy to have your comment on my latest post.
BlaineSch,
I'll be happy to have your comment on my latest post.
Demodex is one of the parasitic face mites that occur on people
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)
These parasites are found in the hair, normally found in greater numbers around the cheeks and foreheadWatch out !!!;)


Sign In
Create Account


Back to top










