burger menu icon
WillMaster

Latest at This Website

Here are introductions to the 11 most recent items:

The HTML optgroup Tag
23 February 2026, 16:22:30 UTC

When you need to group certain items in a dropdown list, use the <optgroup> tag. Here is a demonstration.

Please select a tree or a bird:

When you view the dropdown list, you'll see how your browser divides things up. Each browser has it's own style for dropdown lists.

(The complete article is at https://www.willmaster.com/library/web-content-prep/the-html-optgroup-tag.php)
Determining Div Location
17 February 2026, 17:31:53 UTC

This is a techy how-to article about measurements related to div locations and dimensions.

Listing all the reasons to know the information would be a long list. Getting the dimensions of a div element for use when centering the div within the viewport is one reason. It is also how I used it just yesterday.

There are various ways to try to determine the location of a div in the viewport (browser window, generally, but might also be an iframe). Similar to its dimension, there are various ways to determine the width or the height of a div.

The ways are JavaScript methods. PHP doesn't work for this functionality because PHP runs before the web page is loaded into a browser window.

The JavaScript function I prefer to use provides the viewport location and the dimensions of a div all in one function call. getBoundingClientRect is the name of the function.

(The complete article is at https://www.willmaster.com/library/tutorials/determining-div-location.php)
Site-wide Login System
10 February 2026, 14:46:30 UTC

At Willmaster and some other sites, we use a site-wide One Login System. The system can protect any directory that contains a customizable .htaccess file.

How the One Login System Works

There is one log-in page. After logging in, a cookie is set.

Directories are protected with entries in the .htaccess file. If the cookie is set, the browser is allowed to access the directory. Otherwise, the browser gets a "not authorized" message.

Why?

For Willmaster.com, we use the One Login System to protect various scripts on the domain. The Possibilities emailing software is an example. Others are syndication, web content updating, server monitoring, and backup software.

Some of those are in separate directories. Some share the same directory. So long as the directory has the customized .htaccess file, we're good.

For better security, either or both the username and the password may contain embedded spaces.

The source code provided in this article is an updated version of what we are using. It was updated for easier customization and to allow more than one username/password set to be specified. (With a separate username for each person allowed access, removing a username later won't affect anybody else's log-in.)

(The complete article is at https://www.willmaster.com/library/security/site-wide-login-system.php)
Image Show
2 February 2026, 15:51:50 UTC

Here are the steps to make an image show available on your web page.

  1. Put some images into a directory on your server.

  2. Upload the "Image Show" PHP script into the same directory. (The script comes with this article. No customization is required.)

  3. On a separate web page, call Image Show.

(The complete article is at https://www.willmaster.com/library/tools/image-show.php)
A Variables Dump
27 January 2026, 14:07:35 UTC

If you program in PHP, you know it is a fairly common need to peek into variables and see what they contain. It can be especially needful when one is chasing a bug.

If you have programmed with PHP for a long time, you no doubt have developed ways to view the content of variables without affecting the flow of the software's execution.

Here is another way, or perhaps a way you are already using. This method publishes the variable name, its length, and its content on the web page. The dumped information can be viewed on the web page where the PHP is running.

(The complete article is at https://www.willmaster.com/library/tools/a-variables-dump.php)
Handling CSV Files With PHP
20 January 2026, 17:48:11 UTC

As a programmer, you are likely to be tasked with reading and writing CSV files.

CSV (Comma-Separated Values) used to be the most popular format for data files compatible with various types of software. It may still be the most popular. Other popular formats are XML and JSON. This article is dedicated to CSV.

If you are not a programmer, you may want to skip this article.

But if you are a programmer, I'll describe how to read and write CSV files with PHP.

I'll first describe how to write a CSV file. Then, how to read it.

(The complete article is at https://www.willmaster.com/library/misc/handling-csv-files-with-php.php)
Remove Current Page From Browser History
10 January 2026, 14:35:30 UTC

JavaScript can be used to tell the browser to forget it ever displayed the current page and to load another page in the same window. If the browser's "back" icon works at all, it will skip over the current page.

The technique may be applied to, as examples:

(The complete article is at https://www.willmaster.com/blog/javascript/remove-current-page-from-browser-history.php)
Differences Between Method GET and Method POST
6 January 2026, 19:36:15 UTC

Methods GET and POST both refer to how the browser sends information to a web page.

Most people don't need to know what method their browser uses when requesting data. Even as a site developer, it isn't often that a choice needs to be made between GET and POST methods.

Yet, when you do need to make a choice, it is good to know what it is you are choosing.

(The complete article is at https://www.willmaster.com/blog/html/differences-between-method-get-and-method-post.php)
Edit Any Web Page
30 December 2025, 16:03:31 UTC

Why would someone want to edit someone else's web page on the sly?

This article describes a fun and harmless way to do it. The edits aren't permanent, and they only exist in your current browser window.

So, why?

It's fun -- for a short time. Then it gets old, like anything unique no longer feels unique after a while.

(The complete article is at https://www.willmaster.com/blog/html/edit-any-web-page.php)
Easy Random Image
23 December 2025, 18:39:52 UTC

Yes, truly, this is easy.

  1. Upload the EasyRandomImage.php script into a directory that contains images.

  2. Use the script's URL as the src value of an img image tag.

When the web page loads, EasyRandomImage.php selects an image at random and sends it to the img tag.

(The complete article is at https://www.willmaster.com/library/features/easy-random-image.php)
CSS Rotate
15 December 2025, 14:04:30 UTC

When you wish to rotate text or an image 360°, perpetually, consult this article for a basic how-to. Only HTML and CSS are used. No JavaScript is required for this functionality.

(The complete article is at https://www.willmaster.com/library/features/css-rotate.php)

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2026 Will Bontrager Software LLC