开发者

Looking for a replacement for NMS FormMail.pl

I have a simple contact form that开发者_Python百科 I knocked up in a few minutes using NMS FormMail.pl. But the customer has requested that I have a second email address entry field, and validation that kicks them back if the two addresses are different. I could add the validation to FormMail.pl, but before I do, I thought I'd ask if there is a better solution, if only because this might already be a solved problem, and also because nobody has modified FormMail.pl in 4+ years.

I know this server has perl and PHP, and maybe Python as well. I've also got Tomcat running, but a servlet seems like overkill for this.


Far simpler to just add the validation to NMSFormMail than start again with a whole other solution. And maybe nobody's modified it because it just doesn't need modifying?

Do you need help modifying the script?


NMS FormMail.pl hasn't been modified by the original authors because it's such a simple thing. It's simply done.

I would suggest you just add a new form entry field and compare the two using Perl's string comparison operator 'eq'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜