Preface: I have done my whole site in php and am unfamiliar with javascript. The php guys said it is unlikely i can solve my problem through php so I am trying here. Thanks.
I have two forms on my page. The top form contains three dropdown list boxes that submit the page on change. The reason for this is that the second drop down is dynamically populated after the first has been selected. Same for the third but based on the second. The bottom form contains three text boxes. What happens is if the user skips the three dropdown boxes and starts filling out the text boxes, then returns to the drop down boxes, anything they have already typed in the text boxes is lost and reset with the initial page values. Is there a way that when the top form autosubmits based on the javascript:
that the data can be read from the lower textboxes and be stored, either by session varibles, post/get array or anything else? I am asking for a starting point or suggestion and some smaple code, if you like/need I can provide my page's code. Thanks.
I have two forms on my page. The top form contains three dropdown list boxes that submit the page on change. The reason for this is that the second drop down is dynamically populated after the first has been selected. Same for the third but based on the second. The bottom form contains three text boxes. What happens is if the user skips the three dropdown boxes and starts filling out the text boxes, then returns to the drop down boxes, anything they have already typed in the text boxes is lost and reset with the initial page values. Is there a way that when the top form autosubmits based on the javascript:
Code:
onchange="this.form.submit()"
that the data can be read from the lower textboxes and be stored, either by session varibles, post/get array or anything else? I am asking for a starting point or suggestion and some smaple code, if you like/need I can provide my page's code. Thanks.