Staredit Network > Forums > Technology & Computers > Topic: Help building website
Help building website
Feb 23 2009, 8:42 pm
By: Encore  

Feb 23 2009, 8:42 pm Encore Post #1



Alright so I am currently building a website, and what I need to do right now is make a little form to where people can email me through the website. What I am trying to avoid is making my email known through putting it directly on the page, and through the html. I need some ideas, and some walkthroughs on how to make it would be delicious. If this isn't clear ask away, and I'll reexplain it.



None.

Feb 23 2009, 9:28 pm Centreri Post #2

Relatively ancient and inactive

I'm fairly certain if you want people to be able to e-mail you, you can't hide your e-mail from their prying eyes.

To create a link to an email so they click it and their program opens up, try <a href="insertemailhere>TEXTEXTEXT</a>.

If you want an actual form, try googling how you could use the <form> tag together with input fields and a textarea to send emails. Probably possible. I would wager a guess on the mechanisms, but I'm not certain how you would specify which content was which (email password, subject, content, etc).

If you really want privacy and yet get emails, I think you can write a PHP script so that your website's viewers fill in a form, it runs it through a script and the server itself emails you (like when SEN sends confirmation emails). That's a tad more complicated, though, and requires actual scripting.



None.

Feb 23 2009, 9:44 pm Forsaken Archer Post #3



http://us2.php.net/manual/en/function.mail.php



None.

Feb 23 2009, 9:49 pm Centreri Post #4

Relatively ancient and inactive

I know that, I used that myself before in my never-completed CMS script. I meant with HTML. I thought you might be able to simply send an email via the <form> function, like you can by just linking to an email via the <a href=""></a> thing.



None.

Feb 23 2009, 10:15 pm Encore Post #5



Alright, I'll look at that. Thanks Centreri and isolatedpurity. If you come up with anything else tell me.



None.

Feb 23 2009, 10:19 pm Falkoner Post #6



If you're server allows PHP then it's easy, if not, you can always have Javascript in a separate file that does the actual e-mailing, and that should at least hide it from most people, even if they try to view the HTML.



None.

Feb 23 2009, 10:20 pm Centreri Post #7

Relatively ancient and inactive

Excooz meh, but how the hell does Javascript email something...



None.

Feb 23 2009, 10:22 pm Falkoner Post #8



Oh wait.. I forgot that they'd see your name if it accesses their e-mail :P I was thinking that you could hide the actual link location using it..



None.

Feb 26 2009, 1:00 pm Forsaken Archer Post #9



You can put it in a form, <form action="mailto:me">blah blah...
That doesn't stop it from being harvested. Bots will be your problem, not your average person.
If you want to hide it in javascript though, I would change the form to have a blank action attribute and simply replace it with your mail address on submit.



None.

Feb 26 2009, 10:48 pm Kellimus Post #10



Quote from Centreri
I know that, I used that myself before in my never-completed CMS script. I meant with HTML. I thought you might be able to simply send an email via the <form> function, like you can by just linking to an email via the <a href=""></a> thing.

Forms are usually used when sending data that requires more information, like large quantities of data and data that can be put into a Database.. At least that's what my teachers told me when I learned about the WWW.



None.

Feb 27 2009, 2:19 am Centreri Post #11

Relatively ancient and inactive

Quote
Forms are usually used when sending data that requires more information, like large quantities of data and data that can be put into a Database.. At least that's what my teachers told me when I learned about the WWW.

Yes. And? And the <a> tag was meant for linking, yet it works for emails. I think IP backed me up with his action="mailto:etc"> thing :P .



None.

Feb 27 2009, 5:07 am Rantent Post #12



I'm pretty sure this is something cool you might want to include.
Code
<html>
<head><title>Untitled Document</title>
<script language="JavaScript">
<!--
window.resizeTo(1000,800)
-->
</script>
<style type=text/css>
body
{
    margin: 0px;
    background-color:#FFFFFF
    color:#000000
    font-family:"Times New Roman", Times, serif
}
div#bg_image
{
    width:100%;
    height:70%;
    left:0px;
    top: 160px;
    position: absolute;
    z-index: 0;
    background-attachment:fixed;
    max-width:700;
    min-height:400;
}
div#contents
{
    z-index:1;
    position:absolute;
    filter:alpha(opacity=50);
}
A:link,A:active,A:visited
{
    COLOR: #E4FFA5; text-decoration: none
}
</style>
</head>
<body>
<div id="bg_image">
 <img src="Awesome image.jpg" style="width: 100%; height: 100%;"></div>
<div id="contents">
</body>
</html>




None.

Feb 27 2009, 2:57 pm Forsaken Archer Post #13



Rantent, that was a complete failure.
Not to mention lots of redundant styling.
Also, "window.resizeTo(1000,800)" is horrible. You just don't do stuff like that.



None.

Feb 27 2009, 5:57 pm Kellimus Post #14



Quote from Centreri
Quote
Forms are usually used when sending data that requires more information, like large quantities of data and data that can be put into a Database.. At least that's what my teachers told me when I learned about the WWW.

Yes. And? And the <a> tag was meant for linking, yet it works for emails. I think IP backed me up with his action="mailto:etc"> thing :P .

Actually, the <a> tag is meant for Anchors, which you can change into Hyperlinks with the 'href' (Hyperlink Reference) attribute and you can even create anchors that send you to different spots within a document. E.G. the 'Top' arrow on this site sends you to the top of a document where an Anchor has been established (not saying that's how SeN does it, but that's one way)

....Even read up on it yourself: Information about the Anchor Tag

Does it mean that the tag was specifically created for linking just because it is an easy way to link? I would have to say no, just like Tables are used for Tabular Data, and people break standards and use them for layout.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:05 am]
Moose -- ya
[05:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
Please log in to shout.


Members Online: SPyro_Malin