Try changing the line to:
echo("Attempting to add ".$new_swn."<br>");
Also, change:
$new_swp = $HTTP_POST_VARS['new_swn'];
to
$new_swn = $HTTP_POST_VARS['new_swn'];
Lastly, if you are posting more than one variable, then this method of retrieving the data might not work. You may want to remove this line altogether:
$new_swn = $HTTP_POST_VARS['new_swn'];
and instead use:
extract($_POST);
This will extract all of the variables for you.
In other words, if your URL is:
http://www.foo.com/foo.php?new_swn=JoeBlow&yahoo=someone
Then the extract will give you the following variables:
$new_swn=JoeBlow
$yahoo=someone
(This is a better way to extract the variables anyhow, since you don't have to uniquely identify each variable.)
The string should not return
"Attempting to add $new_swn" It should actually echo:
"Attempting to add [value of the string $new_swn]"
In other words, if $new_swn = JoeBlow, then it should echo:
"Attempting to add JoeBlow"
I think, what jimson is trying to see is if the page is grabbing and identifying the variables from the URL properly. (Correct me if I am wrong jimson)
Anyhow, if you cahnge the code to what I have shown above, then it should work a bit better... Good luck with this one.
~DR