Wednesday, 15 August 2012

javascript - Re-insertion of user inputted values. php or .post -



javascript - Re-insertion of user inputted values. php or .post -

this question might sound little amatuer curious find out.

so i've got form field consists of mixed text-boxes, selectboxes , textareas. stores user-inputted values in database , have values re-inserted everytime user wants re-edit form.

my question re-insertion process of form fields via stored values in database, improve utilize 1) php mysql queries or 2) doing .post calls script, json-encode info , using jquery insert values form on .ready?

i appreciate if able advise me improve way , explain complications of each method. say, method take , why take it?

would incur more bandwidth? disk space on host computer?

any help appreciated.

either way valid, go php approach. reason if via ajax you're form load , sec later fields populate. doesn't sense professional , damages client experience. whereas php prebuilding data, form built , ready go =)

as far optimization, it's going un-noticable on php side. notice un-populated fields beingness populated.

php javascript jquery database forms

No comments:

Post a Comment