Jump to content

[SOLVED] $_GET question


AstrosMF

Recommended Posts

<?php 
$sub = $_GET['sub'];
if ($sub == "")
$sub == "home";

 

in this instance when the user types in an address it of course is not going to have the sub attached so I am trying to make it assign a "sub" if there is none inputed in the address bar... but this isn't working... any ideas?

 

Michael

Link to comment
https://forums.phpfreaks.com/topic/41818-solved-_get-question/
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.