Problem getting form variables

PythonPython Forum LeaderThe Royal RAM
I am writing a basic script which allows users to submit tutorials to a mysql database but Im having some trouble with it but its really weird...

Heres what Ive got:

[PHP]$category = $_POST;
$title = $_POST;
$caption = $_POST;
$content = $_POST;
$author = $_POST;
$email = $_POST;


echo "$_POST";
$query = "INSERT INTO `article_art` ( `id` , `category` , `active` , `name` , `caption` , `content` , `author`) VALUES ('', '$category', '$active', '$title', '$caption', '$content', '$author');";
mysql_query($query) or die ("dead");[/PHP]

This is submitted to via a HTML form where all the input boxes have been named as category, title, caption, content, author and email.

The problem is that when the form is submitted the variables are not available in the script therefore it doesnt add into the database properly.

Now the strange thing is that I have created this script locally on my computer and it worked fine but when i now tried it live it doesnt want to work.

I just cant figure it out... Is there something Im doing wrong?

Thanks

The Royal Ram

Comments

  • PythonPython Forum Leader The Royal RAM
    Dont worry - problem solved

    The Royal Ram

Sign In or Register to comment.