close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

update record on checkout page - not updating

Thread began 2/27/2012 2:36 am by Christopher West | Last modified 2/27/2012 12:53 pm by Christopher West | 688 views | 4 replies |

Christopher WestCommunity Expert

update record on checkout page - not updating

Hi there, i have created a working ecart. Ive designed a "quick" registration page (only username(email), password, and full name required here). The I have secured the checkout page, so this redirects to the login page, then redirects backs on success.

But what Im trying to do, once the user enters the checkout page for the first time the address details that they enter on the form will be automatically saved to their User table (via an INSERT server behavior that I added which is accessed via the UserID session variable).

However when I checked out the database, those address details are not updated. And I am curious to know why not. I have attached the checkout.php file in question. if you could take a look and help :)

Chris

Attached Files
checkout.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the action of the checkout form is to post to the confirm.php page:

<form name="ecart_checkout_form" action="confirm.php" method="post">



all form processing must occur on the forms action page the action page is where the form data is sent when the form posts.

Sign in to reply to this post

Christopher WestCommunity Expert

So from what you said What I need to do is add an Update Server Behavior to the Confirm.php page. The thing is I am sure I also tried adding an Update Server behavior to the Confirm.php page as well for testing. and it also didnt update the User table. I shall double check on this. But should it work by adding a Update to the Confirm.php page (Pun intended, could you confirm this :)

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

yes, i can confirm that adding the update behavior to the confirm page is the way to go...

Sign in to reply to this post

Christopher WestCommunity Expert

excellent, i just tried it and it works to some part - i think i may need to change some variable names around as some of the details arnt saved. but I think its just a name referencing thing. Also I noticed it only seems to work if I Bind the "session shipping address details rather then the billing address details)

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

Content

rating

Layout

rating

Ease of use

rating

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...