Jump to content

Need a contact form


giucas
 Share

Recommended Posts

Welcome to the Windows Forum.

Yes, you can use HTML forms. The problem, however, is that your email address will be open for every harvesting bot on the Internet, and you mailbox will soon be filled with most unwelcome messages. There are scrambling scripts available, but I think the cleverer harvesting bots may be able to unscramble them.

P.S. this question would better be asked in the Web Design and Code forum; maybe some kindly moderator can move it to over there?

Link to comment
Share on other sites

Yep, I have one on my website, easy to set up and neither bots or humans can harvest your email address from it. Very useful method of allowing other people to contact you without them seeing your email address. Have a look at mine, it can be adapted to have as many fields as you wish.

Contact form

Link to comment
Share on other sites

well, since you actually already solved it, this might be obsolete.

But since you cant run any server side software, how where you planning on actually sending the mail, since you need a server to send it for you?

My point is, you need PHP, ASP, JSP or anything else on the server in order to send mails from your webpage, therefore leaving it easy to discuise your email (have it at the server, and not on the page)...

But if you are paying for that scripting, stop it, there are a million ways to get it for free, and there is also alot of cheap webhotels, where you can have your page, and dont have to worry about being able to send mail...

Link to comment
Share on other sites

I'm confused here. I read the poster as asking for a contact form on his website so that other people can enter their details then send to him as a question or request without them knowing his email address and that is why I've pointed him to the one I use on my site. If someone uses my contact form I receive a notification in outlook but you can't see my email address even if you look at the code of my site. It appears others are reading it as though he wants to be able to email other people [spam] without them knowing where it originated from. :unsure:

Link to comment
Share on other sites

I'm confused here. I read the poster as asking for a contact form on his website so that other people can enter their details then send to him as a question or request without them knowing his email address and that is why I've pointed him to the one I use on my site. If someone uses my contact form I receive a notification in outlook but you can't see my email address even if you look at the code of my site. It appears others are reading it as though he wants to be able to email other people [spam] without them knowing where it originated from. :unsure:

I read it as you did...

The only thing i say is, that in order to be able to mail out, you need server software. The solution you give, uses someone else's server software, and the solution i typically use uses my own server software.

Since PHP, ASP and JSP files are unreadable from the outside (only callable) you can hide your email in those files, and dont have to show your email to anyone but the people having admin access to your server :-)

Link to comment
Share on other sites

  • 3 weeks later...

if you have php installed use mail()

I'll quickly write the code.

<?php
$to = "[email protected];
$subject = "My Mail";
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$ip = $_SERVER['REMOTE_ADDR'];
$body = "$message \n\nName: $name \nEmail: $email \nIP: $ip";
$submit = $_POST['submit'];

$contactform = "
<form method=\"post\" name=\"post\" action=\"".$_SERVER['PHP_SELF']."\">
Name:<br /><input type=\"text\" name=\"name\" size=\"40\" value=\"$name\" /><br />
Email:<br /><input type=\"text\" name=\"email\" size=\"40\" value=\"$email\" /><br />
Message:<br /><textarea name=\"message\" cols=\"60\" rows=\"20\" />$message</textarea><br /><br />
<input type=\"submit\" value=\"Send!\" name=\"submit\" />
</form>
";

if( !$submit) { $msg = $contactform; }

else if (!$email or !$name or !$message)
{$msg = "You did not enter all the fields required, please fill them all in.";
$msg .= $contactform;}


else if (checkemail($email) == false)
{$msg = "Your email address isn't valid please try again.";
$msg .= $contactform; }

else

if (mail($to, $subject, $body, "From: $email"))
$msg = "Send Thanks.";

echo $msg;
?>

its just a basic example, they are the best way of protecting your address but most of the basic ones can be injected to show the email.

Link to comment
Share on other sites

  • 3 weeks later...
Yep, I have one on my website, easy to set up and neither bots or humans can harvest your email address from it. Very useful method of allowing other people to contact you without them seeing your email address. Have a look at mine, it can be adapted to have as many fields as you wish.

Contact form

sorry[?] for getting back onto this topic, but i have a few questions:

@djohn: about the contact form your page, how does it work > it doesnt send any email adresses does it? please explain

and @giucas [or anyone else who knows the answer]: which contact form did you use? and does it work completely secure?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy