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

Form text field in repeated selection and server validation

Thread began 1/17/2018 11:34 am by tony | Last modified 1/19/2018 12:38 pm by tony | 427 views | 15 replies

tony

Hi Ray,
I need just a last little help:
I'll try to explain using an example:

in page 1 the user select 5 articles.
in step2 5 article fields (and barcode fields are created).
The user fills all fields.
Now the user change his mind and go back to page1.
Now he select 3 articles.
In step2 there will be 3 articolo fields and 3 barcode fields.
But session for article 4 and 5 exist, so I need to remove them.
I use this code to remove the extra session.

php:
<?php 

@session_start();
     for (
$x=15$x>=intval($_SESSION['numart_sess'])+1$x--) {
        unset(
$_SESSION['articolo_sess_'.$x]);
        unset(
$_SESSION['barcode_sess_'.$x]);
     }
?>



But now I need to remove the WA persist EXTRA data too, the same way as I cleared the extra sessions. This way an user that goes back to page 1 and selects a number of articles higher than the previous one won't see the extra articles pre-filled.

How can I do this?

TIA
tony

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