• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Webform with php

Albert

New Member
I have a free page with http://www.club-server.de/main.php?id=detail (package free server), which allows php only and I would like to have something like formmail, which needs perl. Are there php-only solutions? I only want that a small message is forwarded to an email-address, which cannot be harvested by spammers.
 
Last edited:
do you mean, creating a formmail instead of a link to send mail (<a href="mailto:user@email.com">user@email.com</a>)

if so, the answer is yes. there are php solutions for it.

1.since php support email sending (through command line: sendmail -t -i by default) , you can create a form which is then processed with php scripts.
eg: (very simple one)
<form action="sendmail.php" method="post">
<input name="title" />
<input name="message" />
<input type="button" value="Submit" />
</form>

and then
PHP:
//File sendmail.php

$to = "user@email.com";

//Do some regex check
//Bla..bla..bla

//If regex check is OK
@mail($to,$_POST['title'],$_POST['message'],"From: [email]admin@mysite.com[/email]");

2.Encrypt email address or convert email address to an image so that webbot cannot crawl it.
 
Back
Top