error in send with post method

Javascript coding ..

Moderators: macek, egami, gesf

Post Reply
msmohan
New php-forum User
New php-forum User
Posts: 36
Joined: Sun Jun 05, 2011 9:03 pm

Re: error in send with post method

Post by msmohan » Tue Jul 10, 2012 1:30 am

Hi,
In your code there is a small mistake. When you sending the parameters should have the name with values,

your code

Code: Select all

var x=25;
xmlhttp.send(x);
proper code

Code: Select all

var parameter = "x=25";
xmlhttp.send(parameter);
you have to mention the x variable in string and pass the whole set then it will work.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest