Jump to content

[SOLVED] Using IF in php


chwebdesigns

Recommended Posts

Hi,

I'm pretty new to writing lots of things in php, and this is probably a obvious answer.

I've got this section of code

<?php 
if (!$_GET['nav'] ) {
#do something
} ?>

This part works ok. But what I want to happen is if nav = nothing or nav = main then the same if function goes ahead.

Hope this makes sense.

Thanks in advance

Cal

Link to comment
https://forums.phpfreaks.com/topic/159718-solved-using-if-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.