Results 1 to 7 of 7

Thread: How can I do this with javascript?

Threaded View

  1. #1
    Join Date
    Dec 2012

    Question How can I do this with javascript?

    Imagine a MySQL table that has columns:
    Car-------------- color-------------------price
    mazda---------------white -----------------$10

    I have a PHP form that has a drop down menu (to select CAR) and one input box (for quantity) and button to calculate total price (quantity x price).
    When a visitor selects a car I need to picks up value for price from the same MySQL tables.

    This is while the visitor is still on the same page (before he click on calculate total button), so it can not be done with PHP. How do I do this with Javascript?
    It seems like a simple task but I am very new with js and can not think of a way to access the database without including password and other information for database in the javascript whch can be seen in source code and is a security issue.
    any suggestions or help is greatly appreciated.
    Thank you in advance
    Last edited by JayJava; 01-10-2013 at 01:16 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center