- So right now, our PHP file is only setting colors…for the SVG art if it finds GET variables of b and i.…So, let's go back to our SVG graphic…and what we want to do here is set up some defaults.…So, if these properties are not defined,…we have some base setting that we are going to use.…In the other files,…we had set up base settings of black and white.…Base art was black. Icon art was white.…So, we want to do the same sort of thing here.…
So, back in our file, let's hit a few returns.…Again, after the header function,…let's create a conditional statement…and let's check to see if the GET variables are being set.…So, we'll type if,…beginning and ending parentheses,…beginning and ending curly brackets,…let's split this open.…Inside of the parentheses for if,…we're going to use another PHP function called isset.…So, we'll type i-s-s-e-t,…put in a set of parentheses.…
Let's come down here and copy the GET variable for b.…Copy that. Paste it inside of the parentheses.…So, we're saying here, "if the GET variable for b isset",…
Share this video
Embed this video
Video: Setting up default colors for the SVG file