Ok guys, I am definately a newbie…
Been looking around for quite some time, but can’t find a clue how to accomplish a certain task. Some concept help would be a great.
I am laying out some pages that will eventually turn a users selections into an online order..The users selects choices from drop down boxes and live without refreshing the page(not submitting), with javascript (getelementbyid), I can read the boxes and start some calculations for the total cost. Problem I am having is…
After I read the boxes I need to to retrieve some calculation data from a database (mysql). Is it possible in javascript to insert an sql in PHP to retrieve calculation data? Or jump to a PHP routine from javascript and return with data? I’ve kinda got a working model by preloading the database to the html page before starting the javascript calculations and using a hidden input to pass data. I’ve done C++, Delphi(pascal), basic, asm…etc.
This preloading and passing in hidden seems really stupid. Peloading an entire database would have to slow down my pages considerable I think.
Anyway after the price is calculated the intention of course is to submit the page and all gets pretty smooth from there forward.
Actually I’ve seen this on someone else’s website and I think it’s sweet..The sight is [url]www.psprint.com
So in short, is there a better way?
Thanks ahead time for anyone’s thoughts or help on this..
Dabrag