Going back to previous page and recovery form data

Javascript coding ..

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Mon Nov 28, 2011 2:01 am

Going back to previous page and recovery form data

Postby omidpand » Mon Nov 28, 2011 2:21 am

I have a search page that has some search fields in it and I wrote it by php
2 of those fields are city combo box and province combo box
when one province is selected, a javascript function fill city combo box with cities of that province
after submiting and the result is shown on next page I want when user go back to the search page again all fields data shown and user have not to fill them again
I could select province after go back to search page but cities of that province does not selected by programing
I tried to run the javascript function to fill the city combo box from province that is selected but the function says province is empty, it seems function runs before province combo box is filled
what shoul I do?
Thank you

Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest