Trouble with $.post

I am trying to insert some values into an sql database.

I am using

<input type="text" name="message" id="message"  />
<input type="image" src="boca.png" onClick="send();" />

to get the value and

function send(){

var mess = $('#message').val('');   
var dataString = 'message:'+ mess;  
  type: "POST",  
  url: "",  
  data: dataString,  
  success: function() {  
});  }

to send it to the php file and in the php file:

$message = $_GET['message'];

I think the error occurs either in sending or in the way the var dataString is encoded


Simply enough, you're using the HTTP POST method, not the HTTP GET method, so you need to use $_POST rather than $_GET on the PHP side.

Need Your Help

Javascript Operators Issue working with Decimals

javascript html math

I got everything almost where I want it. My only problem is that for some reason I can't get the bctf1 to add right. Say if bctf = 10, the result with the code would be 100.59 instead of 10.59. Say...

Is there a standard e-commerce database schema to apply the discounts/taxes/gift vouchers to products?

database e-commerce

A good and flexible database schema illustrating e-commerce products and their rates management is required.