giucas Posted July 15, 2007 Report Share Posted July 15, 2007 Hello,I need a contact form on my website, that will send to my email address what the visitor enter in the form fields. The problem is that I can't run any php scripts.. is there a way to use some html form? Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted July 16, 2007 Report Share Posted July 16, 2007 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? Quote Link to comment Share on other sites More sharing options...
giucas Posted July 17, 2007 Author Report Share Posted July 17, 2007 Thank you for your suggestions! I found a site that offers remotely hosted contact forms, URL edited out by Nellie2 . Basically, I paste the html code in my website, and it calls the php script on their server who sends the email. :D Quote Link to comment Share on other sites More sharing options...
Sir T Fireball Posted July 20, 2007 Report Share Posted July 20, 2007 :D This is from the same cheeky bugger that was spamming the Pit a few days back. Jacee claims they use the same ploy all over the internet...http://forums.pcpitstop.com/index.php?showtopic=144064 Quote Link to comment Share on other sites More sharing options...
andsome Posted July 20, 2007 Report Share Posted July 20, 2007 :D This is from the same cheeky bugger that was spamming the Pit a few days back. Jacee claims they use the same ploy all over the internet...http://forums.pcpitstop.com/index.php?showtopic=144064I have reported this thread to the management for them to investigate. Quote Link to comment Share on other sites More sharing options...
djohn Posted July 20, 2007 Report Share Posted July 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
nellie2 Posted July 21, 2007 Report Share Posted July 21, 2007 Thanks for the heads up Sir T.... anyone can find some contact form information by doing a good old google Quote Link to comment Share on other sites More sharing options...
mcb2001 Posted July 21, 2007 Report Share Posted July 21, 2007 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... Quote Link to comment Share on other sites More sharing options...
djohn Posted July 22, 2007 Report Share Posted July 22, 2007 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. Quote Link to comment Share on other sites More sharing options...
mcb2001 Posted July 23, 2007 Report Share Posted July 23, 2007 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. 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 :-) Quote Link to comment Share on other sites More sharing options...
Mike567 Posted August 7, 2007 Report Share Posted August 7, 2007 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; }elseif (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. Quote Link to comment Share on other sites More sharing options...
Coreper Posted August 27, 2007 Report Share Posted August 27, 2007 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 formsorry[?] 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 explainand @giucas [or anyone else who knows the answer]: which contact form did you use? and does it work completely secure? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.