AnanthaKN / jquery-in-place-editor

Automatically exported from code.google.com/p/jquery-in-place-editor
Other
0 stars 0 forks source link

Problems with server side scripting #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. php server response

What version of the product are you using? On what operating system?
Latest version downloaded from her. Windows XP.

Please provide any additional information below.

So my code is this:

Jquery:

<script type="text/javascript">

$(document).ready(function(){

    $("#edit").editInPlace({
        callback: function(unused, enteredText) { return enteredText; },
        url: "<?php echo "profile.php?username=".$_GET['username'];?>",
        bg_over: "#cff",
        field_type: "textarea",
        textarea_rows: "15",
        textarea_cols: "35",
        saving_image: "../images/ajax-loader.gif"
    });

});

</script>

I am doing this to submit in place, because I am using a profile system and I 
want users to be able to edit what they need.

And in php I am doing it like so:

                <?php
                    $update = $db->first("UPDATE users SET bio = ".$_POST['update_value']." WHERE username  = '" . $db->escape($username) . "'");
                ?>

And I get an error, update_value is not recognized:

Notice:  Undefined index:  update_value in /home/test/profile.php on line 147

Thanks!

Original issue reported on code.google.com by gfxcl...@gmail.com on 19 Jan 2012 at 10:57