Click here to Skip to main content
15,897,704 members

Comments by Qassim Ali (Top 7 by date)

Qassim Ali 15-Dec-19 8:40am View    
How can I convert it to byte?
Qassim Ali 15-Dec-19 8:38am View    
You mean make the object outside of the ajax call and then use it inside? can you write me a sample on how that would look and how to access it on php side because I am not familiar with objects in PHP.
Qassim Ali 15-Dec-19 8:09am View    
So when I add JSONG.stringify to my data it doesnt show in the console but when I remove it it shows. Am I not serializing my data to string properly?
Qassim Ali 15-Dec-19 7:36am View    
I tried doing all the steps you told me about and this is how my client side ajax request looks like
  $.ajax({
          url: 'ajax.php',
          type: 'post',
          data: JSON.stringify({VehicleNo: VehicleNo, Manufacturer : Manufacturer, Model: Model, Model_Year: modelYear, State: State, Color: Color, Type: Type, Sale_Price: salePrice, Rent_Price: rentPrice, Stock: Stock, i: i, text: Description}),//$('form').serialize(),
          contentType: false,
          success: function(data){
            console.log(data);
          }
        });

the database still doesn't get updated.
Qassim Ali 15-Dec-19 5:51am View    
I assumed since I am sending the information to server side the method should be post but if that is not the case can you elaborate more on the first two points and link me maybe to some source on why and how to do them?