I'm building a computer store and would like to add computer quote that show the price instantly. For example: if customer chooses CPU $200 and Case $50 it will show as $250 total. We used to use simple form and reply the request but lately we couldn't handle so many quotes. Plus, showing the result immediately is more convinence. I've checked out hotscripts already but had no idea this subject belongs to what category? Any suggestion? Please
You might use JavaScript or Perl (or PHP) to calculate the amount immediately, then pass the result through the forms....
etLux
11-20-2000, 02:34 AM
In JavaScript, I guess, just generally, that would fall under form validation.
If the form isn't too lengthy or complex, this is fairly straightforward in JavaScript.
This is very brief and general, but...
Name the form and name the fields; and then use an onClick event from a button or link to call a function that reads the values with document.formname.fieldname.value, and adds the values and displays them in still another form field.
When the form is then submitted to a Perl script, you can grab the values per usual, and sendmail the results.
sodapopinski
11-20-2000, 04:31 AM
Nam,
I have an idea.
Use AlienForm they could do mathematical logic as well as send email to you and your visitors. :D
P.S: go to cgi-resources.com and search for Alien Form
Thx.
Soda
mkaufman
11-20-2000, 07:38 AM
Nam, could you contact me on ICQ: 73902680 or either by E-Mail: matt@techboost.com ? Thanks ;)
Thanks all,
etLux, I've seen some other computer stores use javascript like you and BC have said, but I don't know how, also if cutomer's browser has java disable, it won't work. The quote is long, but not complex, it consists of all parts of the PC, each has about 20 choices.
sodapopinski, thanks so much, I found it, exactly that I needed for now. I've also found PC configurator but it costs $150. I'm going to put E-commerce to his site too by using PHP shop, but until then I have to find another way to integrate the quote and the shopping cart. Have any here have used PHPshop?
mkaufman, I've just emailed you :).
etLux
11-20-2000, 01:22 PM
For a variety of reasons, from reliability to flexibility and range of scripting, I really like to see things like this done server-side.