charlie2k Posted April 12, 2007 Share Posted April 12, 2007 Hi, new here, definitely not a PHP coder, but getting slowly into it anyway, here's a FormMail called Jack's FormMail (formerly (Matt's). It's simple and it works. The developer I found specifies this code to hide the recipient of the form contents email address: $recipient = "jack@schitt.org, steve-o@jackass.com"; The documentation I'm looking at is here http://dtheatre.com/scripts/formmail_doc.php#recipienta Question: where does that snippet of code GO? It's not a form variable, and I have no idea where to put it in the script. Anyone know? thanks James/ Boulder Quote Link to comment Share on other sites More sharing options...
youneek Posted April 15, 2007 Share Posted April 15, 2007 Couldn't you put it anywhere in the script? I would assume that you could put it just after the <? tag at the beginning of the file and it would work. Quote Link to comment Share on other sites More sharing options...
charlie2k Posted April 16, 2007 Author Share Posted April 16, 2007 Hi, it's already in the php script. The value $recipient = "email@gigurdjieff.net"; is there. I don't know how to get the form to work without the email parameter <input type="hidden" name="recipient" value="email@gigurdjieff.net"> or how to change it so it gets the email recipient off the script. If I change or delete that input parameter in the form I get an error message when hitting the submit button. And if the email address is in the form on the HTML page, then it gets harvested. ? thanks for the reply, James Quote Link to comment Share on other sites More sharing options...
youneek Posted April 18, 2007 Share Posted April 18, 2007 is there any slashes like // in front of the $recipient or anything? Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 22, 2007 Share Posted April 22, 2007 Sounds as though the form processing script checks that an email address/valid email address is passed from the form hence the error when you remove that html line. You could edit the processing script so it doesn't check for that error; you could leave that line in but with a fake email address (let the spambots have fun) as long as you declare the real email address AFTER the processing script has retrieved form inputs and BEFORE the email is sent. 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.