Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Going back to previous page and recovery form data

Javascript coding ..

Moderators: macek, egami, gesf

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
omidpand
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Nov 28, 2011 2:01 am

Return to JavaScript

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.