NameSilo

Help with Php contact form

Spaceship Spaceship
Watch

flavian

Established Member
Impact
1
Hi guys,,, got a php script here i need a hand with
I want to hide my email from spammers, but dont know how to do it.. can you anyone help >>>





// get posted data into local variables
$EmailFrom = Trim(stripslashes($_POST['EmailFrom']));
$EmailTo = "[email protected]";
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Your email address is never shown on the screen based on that code. You should be safe unless you echo it somewhere else.
 
0
•••
Yes as dan pointed out the way you have it would stop spammers from getting your email as the email is never output at all and is only used by the script server side.

Also I hope this is pseudo code as at present it is very easy for someone to exploit it as you are doing no checks at all on the from email address nor any other input (except for the quantity which you are checking is numeric). Any input from a user should be validated to as much a precise way in which you can s if input should be in a specific format ensure it is in that format etc
 
Last edited:
0
•••
thanks, can you elaborate?
 
0
•••
with the script you had I could quite easily add my own headers to the email and use it to spam alot of other people.

Regardless of this particular problem ALL input should be validated to ensure that no problems can occur from it.
 
0
•••
Also, Basically no one can see php code, only the results when they view source like the divs or tables, nothing else.. so you will be find unless you distribute your code :s
 
0
•••
someone told me the script im using is not good, that spammers can use it..

well. is there any programmers who can help me with this script - i have a spare $10 if someone can.. need it done asap however. I have the for and script available for your to edit etc..
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back