Jump to content

Landing page

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
11 replies to this topic

#1
Demodex

Demodex

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
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
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 !!!;)

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
<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.

#3
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
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.

#4
Demodex

Demodex

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
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.
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 !!!;)

#5
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
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
Demodex

Demodex

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
OK, well I want the mail sent through the web page itself.

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 !!!;)

#7
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
Yes, you'd simply get thegamemakers code, and change the form action to the same page, and do some php:

<?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
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
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.

#9
Demodex

Demodex

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
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 :)
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 !!!;)

#10
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
<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.

#11
Demodex

Demodex

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
Now I get it, thanks man :)

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 !!!;)

#12
Demodex

Demodex

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
Now I get it, thanks man :)

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 !!!;)