Current Page: 1 of 1
Results 1 - 2 of 2
16 years ago
JimBobble
Well, folks, I have to apologize...I fixed it by using the $_GET function: if ($_GET['type'] == NULL) { $type = 'home'; } else { $type = $_GET['type']; } It makes good sense why I should have been using it all along, but I'm still curious how the code worked on the hosted server. If anyone has an explanation I'd love to hear it! Thanks again for the help.
Forum: WampServer English
16 years ago
JimBobble
I'm sure this is a rookie question, but it has me stumped. I am passing variables via the URL in this fashion: In the PHP, I check for the "type" value by doing the following: if ($type == NULL) { $type = "home"; } The PHP code then uses the "type=" declaration to change the content based on the value. If the "type" variable is missing,
Forum: WampServer English
Current Page: 1 of 1