Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-01-04, 08:10 PM
Junior Member
 
Join Date: Jan 2006
Posts: 16
sheldongold
Default

Hi,

Currently - when you add a product to your quote it takes you to the cart and shows you everything you hasve ordered. I want to just add it to the order without leaving the page I am on. Can I do this?? Easily??

The code when I click to add something is:

display_button('show_cart.php?new='.($row['productid']), 'add-to-cart', 'Add '
.$row['title'].' To My Quotation');

Many thanks in advance...
Sheldon
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2006-01-04, 11:35 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

what are you talking about?

What package? What program? What anything!!!

The way to do this is just use javascript to change the value in the database. But depending on the application there are several ways to do it.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #3 (permalink)  
Old 2006-01-04, 11:42 PM
Junior Member
 
Join Date: Jan 2006
Posts: 16
sheldongold
Default

I am building in PHP4 and MYSQL4.

I don't want to update the database until the whole quotation is done and the user has entered their details because at this point an orderid is generated. I just want to add the product to the show_cart.php page without going to the page.

Would you like me to post the script pertaining to anything else?

Thanks
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:49 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.