Back Button Handle A Dynamic Form

后端 未结 6 1113
旧时难觅i
旧时难觅i 2020-12-28 17:17

I have a form with an array of text fields. The user (through javascript) can add an arbitrary number of text fields to the form. After submitting the form and pressing th

6条回答
  •  余生分开走
    2020-12-28 17:53

    Step 2: The script processing the form puts the values entered into an array and stores that array into a session variable (or text / db / whatever you find appropriate).

    Step 1: The script which outputs the form adds a javascript (which in turn fills in the form) if that session variable is found (and it also clears the session variable).

提交回复
热议问题