Jump to content

POST data disapearing?


tallberg

Recommended Posts

Ive an incongruable problem. the post data  seems to turn in to nothing when sent to the db.
However also SETthe image_id feild then it works i dont want to change that feild.???????


[code]
echo $_POST["the_description"]; /// Why does it echo out here but does not pass to the db.

        $description = $_POST["the_description"];

$query = "UPDATE hp_additional_images SET feild = '$description' WHERE image_id =". $_GET["id"];

mysql_query($query) or die (mysql_error());[/code]
Link to comment
Share on other sites

This is the query as it is now.

[code]echo $_POST["in_description"] ; // this works fine.

$query = "UPDATE hp_additional_images SET adescription = '". $_POST["in_description"] . "' WHERE image_id = " . $_GET["id"]; // now the value of $_POST["in_description"] is blank?[/code]

If you want to help me prevent sql injection great! but i need to understand why this is now working. I seem like a bug or something?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.