Buttons for bashblog
August 25, 2017 —
BarryK
See the buttons along the top!
They change, depending on whether the front-page, a post, archive-page, or tags-page is being viewed.
The contact form is a php script, that I got from here:
http://form.guide/contact-form/creating-a-contact-form.html
However, it does not work with php7. My host has php version 7.1.7. But, it was just a couple of functions that are no longer in php7, and I was able to substitute others.
I substituted the split() function with explode(), parameters unchanged.
Another script has the eregi() function, and I did this:
/*BKreturn eregi("^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$", $email);*/
return preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email);
I don't know php at all, just found the alternative code for email checking using preg_match() in another script.
Tags: bashblog