Katriona Coder

Web Developer and Designer

Debugging code blog by Katriona Coder / Katriona Weekes

After years of learning and practicing the art of programming, I decided to do this blog as a way of reminding me – there’s a simple solution to many coding “problems”. That is such an empowering thing to know. I update the blog whenever I think the simple fix is very common and significant. So instead of spending hours trying to fix one piece of code, this blog reminds me that it can be fixed quickly and easily. I love solutions!

EXPLORING MORE CONCISE SYNTAX WITH PHP 7.4

I am really excited about the latest version of PHP (PHP 7.4) because the syntax is more concise, so it makes writing code a lot more efficient! In this article, I'll show you an example of this concise syntax.

CONTINUE READING >>
Exploring more concise syntax with PHP 7.4

SECURING FORM INPUTS WITH PHP

Securing inputs in php forms is so important. Anyone can write their own scripts in the inputs, so it's important to avoid this. One way of doing this is using htmlspecialchars and stripslashes.

CONTINUE READING >>
Securing form inputs with php using htmlspecialchars

USING THE HTML <PRE></PRE> TAGS IN PHP

I use <pre></pre> tags around debug output for readability purposes. In this article, I'll show you how much more readable the data is when using these tags.

CONTINUE READING >>
Using the HTML PRE tags in PHP

FIX SCROLLING WITH BOX-SIZING: BORDER-BOX

Sometimes, unexpected scrollbars can appear on your website and it's not always obvious why. In most cases, I've found that the fix to this is using the box-sizing: border-box property.

CONTINUE READING >>
Fix scrolling with box-sizing:border-box

CREATING AN OVERLAY MENU IN JAVASCRIPT

I like challenging myself to learn something new and do things the so called "hard way". So I learned some new web development techniques and played around with making my own overlay menu.

CONTINUE READING >>
Creating an overlay menu in Javascript

PHP CONTACT FORM ESSENTIAL

A main thing to put in the contact form is this - use an if statement to check if the user did actually submit the contact form.

CONTINUE READING >>
PHP contact form - essntial part of the code