Should I use $_POST['value'] ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

Should I use $_POST['value'] ?

Post by aneuryzma »

Hi,

How can I refer in my php page to the variable "value" posted using this xmlhttprequest ?

Should I use $_POST['value'] ?

thanks


Code: Select all

dojo.xhrPost ({
                        // The page that parses the POST request
                        url: 'login/bottomQuote.php',
                
                        // Name of the Form we want to submit
                        //form: 'post-form',
                        postData: value,
                        handleAs: "text",
                        
                        //here what should I pass ?
                        
                        // Loads this function if everything went ok
                        load: function (data) {
                                // Put the data into the appropriate <div>
                                dojo.byId('quote').innerHTML = data;
                        },
                        // Call this function if an error happened
                        error: function (error) {
                                console.error ('Error: ', error);
                        }
            });
Post Reply