WordPress Email Form Hack
Posted on September 21, 2004 in Computers
(last edited on April 29, 2014 at 1:30 am)
(last edited on April 29, 2014 at 1:30 am)
UPDATE: You can download a much more useful plugin at from Ryan Duff’s site: wp-contactform. There’s also a version with more validation of the email address (through DNS, no less) called PXSMail, which I haven’t tried.
My own contact page now uses wp-contactform…I hope my email contact woes go away now :-) For historical purposes, I’m leaving the old information up.
3 Comments
Hey Ive been trying to get your email script to work for a while now and ive gone through it pretty well but i keep getting and error near the end and im wondering if it has to do with my particular installation of php.
the error is this Parse error: parse error, unexpected T_VARIABLE in /home/brians6/public_html/jm/contact/contact_index.php(674) : eval()‘d code on line 2
any idea why it might be doing that?
i also go another errror on line 648 but i removed one set of the single quotes and it fixed but i cant seem to get around the other error.
thanks for your help!
——-
I had that problem when I first tried to get StarGeek’s script to work, so I changed it so it worked for me. It’s also possible that the Markdown processing is converting quotes into something “not good”, so I’ve put the code into a text file now. I’m not sure what “line 2” is for your code, or what line 674 has on it, so it’s hard to diagnose beyond that.
I’m getting the parse error: “parse error, unexpected T_ENDFOREACH in /home/cotsford/public_html/locomote/email.php on line 121”
Line 121 of my code for email.php is: “<?php endforeach; else: ?>”
Any hints? :)