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;
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

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

Find current logon time
Hi,
in my sql script i want to query and find out the logon time of the current session.
<

Compare user input to flat file data
Help...Am a complete newbie to programming so my code is prolly quite long. Am trying to verify a us

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

BAPI BBP_INB_DELIVERY_CREATE - material number missing in delivery
Hi Experts,

I was able to successfully create an Inbound delivery with reference to a PO

Google Wave
So... has anyone used it yet? Is it any good?

http://wave.google.com/help/wave/about.html#vid

How to search for several parameters from objects in a database?
I have a database with lots of information about objects.
Now I would like to search for 4 or 5 p

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

Php mysql - select?
Hi i have this code:
Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid =

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

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