Save User Inputs while javascript reloading!


Posted on 16th Feb 2014 07:03 pm by admin

hi..
i have written a PHP code in which i reload the page when user selects a value in dropdown...Code: function reload(form)
{
var val=form.cat.options[form.cat.options.selectedIndex].value;
Did you know?Explore Trending and Topic pages for more stories like this.
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?
No comments posted yet

Your Answer:

Login to answer
327 Like 28 Dislike
Previous forums Next forums
Other forums

Registration
ok so i have a site where people can register and login which works now thanks to someone on here th

mail with attachment problems
Hi. I have the following code:
Code: else if(file_exists("site".$timp.".zip")

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

replacements
I have a variable in my PHP script like

ASSFDDDDDDDDDDDDDASDDDDDDDDARYTRHKKHHHHHHHHHHH and p

disable all input buttons
Hello Friends,

suppose i do have a file ( file.php ) has a submit button

Code: [Sele

Generating unique numbers using php
Hi,
I need help in generating unique number using php.I tired using rand() in php.But, by using r

Prevention Help
How can I use PHP or any other language (feel free to move this thread) to prevent users doing scree

Call Screen statement Error
Dear Experts,

is there any setting that needs to be done before creating any dialog progr

Unable to customise toolbar in FCK
How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash