Hi,
I've been writing a script that was working fine for ages and I've been working on it today and made an edit and now it has the strangest problem.
The top of the code looks like this
<?
//add.php
//See if a certain type style is being used
$type=$_GET['typeselect'];
//If there isn't one set it to a default of "paper" to prevent errors later
if ($type==""){
$type="paper";
}
which was working fine and now all of a sudden it always seems to think that $type is blank.
However, if I put echo ("any text") before or after the $type line it works again!
Does anyone have any idea why that is or how to solve that cus I'm stumped!
Thanks,
Matt
edit: Just wanted to add, it doesn't even work if i put echo ""