0

I am trying to make a dynamic form which retrives data. How can I use javascript to load a value from a mysql database?

I understand that it must use php in some way, and I know how to query the database and assign the value to a php variable, but I have no idea what to do after that...any advice?

the goal is to have someone enter their orderid say, then the datbase auto pulls down and enters their last invoice in the field below it after they click GO...

1 Answer 1

1

Try the W3 schools AJAX (which is what you are trying to use) tutorial: http://www.w3schools.com/ajax/default.asp

It will walk you through using AJAX and give you example code so you can do specifically what you want to do and other simple AJAX functions you may want to do.

Sign up to request clarification or add additional context in comments.

2 Comments

do I need to download any special software to my hosting to use ajax or is it just a name?
Generally speaking, AJAX is just a buzzword people use to talk about Javascript that does magical things, including talking to serverside scripts. You want to learn about those Javascript functions, and Zak's link will get you started.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.