Jump to content

Save User Inputs while javascript reloading!


aashcool198

Recommended Posts

hi..

i have written a PHP code in which i reload the page when user selects a value in dropdown...

function reload(form)
{
var val=form.cat.options[form.cat.options.selectedIndex].value;
self.location='form.php?cat=' + val;
}

the problem with this script is that it can retain only the numbers which is the value of the selected item in the drop-down.I also want to retain the name field which is an input string. How can i do it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.