I am working now on Graduation Project with Php and ajax
I have a problem with php
the problem is
I have a form which has input fields the user can input values in these fields to apply some operation on them
and he can save the form values in the database and he can load values from database
i did the save operation by use java script and save values in database
but when i worked with load operation i could get values from database to the java script but i didn't know how to fill this values in the form by ajax because i don't want to refresh the page

this is the javascript which return the data
the data is array of values that i want to fill it in the form
function load_parameters()

var val1 = document.getElementById("profile_name_select").val ue;
$.post("?rt=saveload/load",{profile_name:val1} ,