close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


working with sessions

Thread began 3/06/2013 1:47 pm by Christopher West | Last modified 3/06/2013 2:01 pm by Jason Byrnes | 290 views | 1 replies |

Christopher WestCommunity Expert

working with sessions

Hi Jason, I am thinking about a solution to a situation I have. currently I have International shipping set up nicely that allows the user on the checkout page to select a country and then select a shipping option, these get stored as a session on form post and also the shopping cart weight is already stored as a session upon entering the checkout page...then the delivery cost based on country+shipping option+weight is calculated on the checkout form post....however it would make sense to allow the customer to know the shipping cost before paypal....So I am wondering...can the sessions be created on some kind of form select box on click concept rather then a post? but obviously the recordset on the page that brings in the data for the shipping costs is set up like:

SELECT shippingcosts.*
FROM shippingcosts INNER JOIN shippinglocation on ShippingLocationZone = ShippingCostZone
WHERE ShippingCode = selcountry AND ShippingCostsType = seltype AND ShippingCostsWeightTo >= cartweight
ORDER BY ShippingCostsWeightTo

and that uses selcountry and seltype $_POST['country'] and $_POST['shippingoption']
So of curse that would need to change somehow....Im assumning I canot use $_GET as the calculation is created from the form select box. but how can I incoportate a form selecbox "on click" in the recordset?


Sign in to reply to this post

Jason ByrnesWebAssist

The form data needs to be sent to the server as a post in order for the server to perform the lookup.

it would possible to set up an ajax function that would perform the form post on change of the checkbox, but not actually change the page, but that would require unsupported hand coding.

here is a page i found through google with more details on using ajax to send the form without actually submitting it:

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...