It is possible to check if an email address is valid directly while the user is typing it in the field. It is not to check, if this email address is reachable, only if it can be valid (no unallowed characters, including an @-sign, a dot and a correct localization). Continue reading “Email address validation check” »
Yesterday I posted you an easy way to make your website multilingual. There are several ways to do this. Today I wanted to post youa second way to create a multilingual website. The method from yesterday was a version to use, if you want to translate your whole website and to have the possibility to insert also different looks.
If you want to translate only text parts, you can use translation property files. These are read to the session and inserted from the session to your website. Continue reading “Create your website multilingual – Second way” »
A lot of Websites all over the world have a lot of hits from foreign countries. In 99.9% of this cases the visitors are leaving after a few seconds because they are not able to read or understand the information you offer. How are you able to hold these visitors on your website? Continue reading “Create your website multilingual” »
Yesterday I’ve posted for all interested genealogists and webmaster, how they can create a database out of their gedcom file. But how you can display this information on your website?
In this post I want to explain, how I do this and share you my PHP code for free to use it on your website. I only please you for let my link in the code, that I have also something out from it. Continue reading “Include your family tree in your webpage” »
Following Problem was happened to me:
I had a HTML form to send text data to the webserver. Because it was only text data, I used the enctype “text”.
<form name="formname" enctype="text" method="post" action="saveData.php">
This works in every browser like IE, Firefox and Safari. But I never tested it in the Google Chrome browser.
The form had some mandatory fields. If not all of these fields are filled, the not filled fields are colored red and the hint is shown, that all mandatory fields must be filled. Then a user called me and told me, that he is not able to register. He filled all fields and pressed the register button. Then the form was shown again, all fields were empty and all mandatory fields were colored red. Continue reading “Google Chrome: Problems with inaccurate “enctype”-data in HTML forms” »
You are interested in creating your own webpage to publish your family tree to the world? Then you need to insert your data in a database. The problem: most programms are creating a gedcom file as global file type or other files formats specially for the software you are using but there is no software to create a database. Nearly all genealogical researchers uses then one of the well known platforms to publish there genealogical data to the world wide web. But what to do, if you do not want to upload your data to one foreign platform? Then you have to start again from the beginning to type your data into a database. Continue reading “Create a database from your GEDCOM file” »
Everybody who has a webpage where it is possible to upload images (for example a member picture for member profile) knows this problem: Digital cameras in these days creates pictures with high resolution but also with a big file size. Most pages forbid to upload pictures like this and restrict the size of the picture files.
You can create a good workaround for that. One version is to store the original file and create an additional thumbnail, the other way is, to store only the thumbnail, if you have less space on your webserver. Continue reading “Create thumbnail from image with PHP” »
If you create a webpage, where users can register themself, it is good to send them for the first login a radom created password. This helps you to check, if the entered email address is valid. without a valid email address they are not able to login into your service.
I tried a lot to create PDF files by using PHP frameworks. For Java I’m using iText, but there is no interface to use iText by a PHP server. So I googled a lot and there are several frameworks to create these files. I tried them all an my opinion is, that domPDF is the best one, becase it is the easiest of all to use.
To create a PDF by domPDF, I only have to create a normal HTML page. This page I have to give to the renderer of domPDF and this renderer creates a PDF file out of this HTML code which is a one to one copy of the HTML page. Continue reading “PDF creation by PHP” »
In this days it is absolutely necessary to have a good blog on your site and I nearly waited to long for creating my own. So I started today with a new blog on my page to inform you about interessting articles and other “good to know”-Themes.