close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update Multiple Records

Thread began 1/03/2013 11:31 am by paul377172 | Last modified 1/03/2013 3:21 pm by paul377172 | 2205 views | 6 replies |

paul377172

Update Multiple Records

Hi I wonder if you could help me. I am trying to get a form calculator to work with your update multiple records server behaviour. The one i am using is the calculated field extension. It works fine on sample_form6.php but when i apply the the update multiple records it wont work.

Its "_<?php echo $RepeatSelectionCounter_1; ?>" within the form input tag name which is the problem.

Can you help please

Attached Files
sample_form6.zip
sample_form7.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in a multiple update form, the form elements need to be dynamically named, you wont be able to perform calculations on the form elements since the name of the element will not be known at run time.

Sign in to reply to this post

paul377172

Hi I thought they were Jason i.e <input name="<?php echo $row_Recordset1['Price']; ?>

Sign in to reply to this post

Jason ByrnesWebAssist

i dont follow?

Sign in to reply to this post

paul377172

sample_form6.php

on that page it works fine
but when applying the update multiple record behaviour the form values are beng changed to price1_0
value1_0
quantity1_0
etc
sample_form7.php

when they should be
price1
value1
value2
price2
value2
quantity2
etc

so they dont match the equations that are dynamically produced and _<?php echo $RepeatSelectionCounter_1; ?>

is making this happen

Sign in to reply to this post

Jason ByrnesWebAssist

  when they should be
price1
value1
value2
price2
value2
quantity2  




no this is not correct.

using the multiple update behavior, the fields need to be dynamically named so that each set of element will be unique. this is why the _0, _1 etc is being added on the end.

this is as designed.

Sign in to reply to this post

paul377172

Yes i see that now. Its all working fine now with the calculated field extension.

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